summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-09-22 15:14:53 -0400
committerGitHub <noreply@github.com>2019-09-22 15:14:53 -0400
commit5044a6cd2c7d75e2505e5abc6645fc990f343dc9 (patch)
treee06b037a1d44876a895fd5ecc47071477e52101b /src/main.cpp
parentf69559fe0bd40629e66ecde6e362b73595d9bd2e (diff)
parentc1a5f2ef73f4435c08876155d4551c045d5e7594 (diff)
Merge pull request #839 from isanae/even-more-logging
Even more logging
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b5568fec..ba988ae3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -38,7 +38,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "executableslist.h"
#include "singleinstance.h"
#include "utility.h"
-#include "helper.h"
#include "loglist.h"
#include "selectiondialog.h"
#include "moapplication.h"
@@ -577,8 +576,7 @@ int runApplication(MOApplication &application, SingleInstance &instance,
OrganizerCore::setGlobalCrashDumpsType(settings.diagnostics().crashDumpsType());
env::Environment env;
-
- env.dump();
+ env.dump(settings);
settings.dump();
sanityChecks(env);
@@ -649,7 +647,10 @@ int runApplication(MOApplication &application, SingleInstance &instance,
game->setGameVariant(edition);
- log::info("managing game at {}", game->gameDirectory().absolutePath());
+ log::info(
+ "using game plugin '{}' ('{}', steam id '{}') at {}",
+ game->gameName(), game->gameShortName(), game->steamAPPId(),
+ game->gameDirectory().absolutePath());
organizer.updateExecutablesList();
@@ -825,7 +826,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); });