Skip to content

Commit

Permalink
Include file name in log format (#144)
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Sep 3, 2024
1 parent daa3d65 commit d6c602d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion log/src/Logger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ namespace gz::utils::log
namespace {
/// \brief Default log format
/// Example output
constexpr std::string_view kDefaultLogFormat{"%^(%Y-%m-%d %T.%e) [%l] %v%$"};
constexpr std::string_view kDefaultLogFormat{
"%^(%Y-%m-%d %T.%e) [%l] [%s:%#] %v%$"};
}
/// \brief Private data for the Logger class.
class Logger::Implementation
Expand Down

0 comments on commit d6c602d

Please sign in to comment.