Skip to content

Commit

Permalink
chore: use int id to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Aug 29, 2024
1 parent e80d1c1 commit 4f0897d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ll/api/io/DefaultSink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace ll::io {
struct DefaultSink::Impl {
std::mutex mutex;
std::ofstream logFile{file_utils::u8path(pl::pl_log_path) / u8"latest.log"};
PatternFormatter logFileFormatter{"[{tm:.3%F %T.} {lvl}][{tit}] {msg}", false};
PatternFormatter logFileFormatter{"[{3:.3%F %T.} {2}][{1}] {0}", false};
};

DefaultSink::Impl& DefaultSink::getImpl() {
Expand All @@ -19,7 +19,7 @@ DefaultSink::Impl& DefaultSink::getImpl() {
}

DefaultSink::DefaultSink()
: Sink(makePolymorphic<PatternFormatter>("{tm:.3%T.} {lvl} {tit} {msg}", Formatter::supportColorLog(), 0b0010)),
: Sink(makePolymorphic<PatternFormatter>("{3:.3%T.} {2} {1} {0}", Formatter::supportColorLog(), 0b0010)),
impl(getImpl()) {}

DefaultSink::~DefaultSink() = default;
Expand Down

0 comments on commit 4f0897d

Please sign in to comment.