Skip to content

Commit

Permalink
added accessor method for Logger name
Browse files Browse the repository at this point in the history
  • Loading branch information
usefulcat authored and odygrd committed Oct 31, 2023
1 parent 8516c56 commit 224ccb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions quill/include/quill/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ class alignas(detail::CACHE_LINE_ALIGNED) Logger
return _is_invalidated.load(std::memory_order_acquire);
}

/**
* @return The name of the logger
*/
QUILL_NODISCARD std::string const& name() const noexcept { return _logger_details.name(); }

private:
detail::LoggerDetails _logger_details;
TimestampClock* _custom_timestamp_clock{nullptr}; /* A non owned pointer to a custom timestamp clock, valid only when provided */
Expand Down

0 comments on commit 224ccb1

Please sign in to comment.