Skip to content

Commit

Permalink
noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Jan 6, 2025
1 parent ffbb353 commit f467be8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void logger::set_level(level level) { level_.store(level); }

level logger::log_level() const noexcept { return level_.load(std::memory_order_relaxed); }

const std::string &logger::name() const { return name_; }
const std::string &logger::name() const noexcept { return name_; }

// set formatting for the sinks in this logger.
// each sink will get a separate instance of the formatter object.
Expand Down Expand Up @@ -70,7 +70,7 @@ std::shared_ptr<logger> logger::clone(std::string logger_name) {
}

// private/protected methods
void logger::flush_() noexcept{
void logger::flush_() noexcept {
for (auto &sink : sinks_) {
try {
sink->flush();
Expand Down

0 comments on commit f467be8

Please sign in to comment.