diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-09 04:24:12 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-09-09 04:24:12 -0400 |
| commit | 61956802b1bc42c4878944ddd22514578c188e86 (patch) | |
| tree | af42362919f6c6e65d0d7050faa74a5dd4efc953 /src/main.cpp | |
| parent | 635c0b7a06d358cefcdddb00b7f3b8562c994689 (diff) | |
now logs in utc, added year to avoid confusion
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9cb8c08d..74b04970 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -827,7 +827,12 @@ void initLogging() { LogModel::create(); - log::createDefault(MOBase::log::Debug, "%^[%m-%d %H:%M:%S.%e %L] %v%$"); + log::LoggerConfiguration conf; + conf.maxLevel = MOBase::log::Debug; + conf.pattern = "%^[%Y-%m-%d %H:%M:%S.%e %L] %v%$"; + conf.utc = true; + + log::createDefault(conf); log::getDefault().setCallback( [](log::Entry e){ LogModel::instance().add(e); }); |
