mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-03 19:19:15 +08:00
Added some [[nodiscard]] annotations
This commit is contained in:
parent
6cac90b89a
commit
d7db2cf3aa
@ -204,10 +204,10 @@ public:
|
|||||||
void set_level(level::level_enum log_level);
|
void set_level(level::level_enum log_level);
|
||||||
|
|
||||||
// return the active log level
|
// return the active log level
|
||||||
level::level_enum level() const;
|
[[nodiscard]] level::level_enum level() const;
|
||||||
|
|
||||||
// return the name of the logger
|
// return the name of the logger
|
||||||
const std::string &name() const;
|
[[nodiscard]] const std::string &name() const;
|
||||||
|
|
||||||
// set formatting for the sinks in this logger.
|
// set formatting for the sinks in this logger.
|
||||||
// each sink will get a separate instance of the formatter object.
|
// each sink will get a separate instance of the formatter object.
|
||||||
@ -222,10 +222,10 @@ public:
|
|||||||
// flush functions
|
// flush functions
|
||||||
void flush();
|
void flush();
|
||||||
void flush_on(level::level_enum log_level);
|
void flush_on(level::level_enum log_level);
|
||||||
level::level_enum flush_level() const;
|
[[nodiscard]] level::level_enum flush_level() const;
|
||||||
|
|
||||||
// sinks
|
// sinks
|
||||||
const std::vector<sink_ptr> &sinks() const;
|
[[nodiscard]] const std::vector<sink_ptr> &sinks() const;
|
||||||
|
|
||||||
std::vector<sink_ptr> &sinks();
|
std::vector<sink_ptr> &sinks();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user