summary refs log tree commit diff
path: root/src/Logging.h
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-09-11 07:29:33 +0000
committerGitHub <noreply@github.com>2022-09-11 07:29:33 +0000
commit02adcfdc388f365e8e78f9244a23d9c75e281370 (patch)
treed3e56e9cbd396e81452e4230a8d310293b536674 /src/Logging.h
parentEnable spoilers in replies (diff)
parentControl logging via command line and environment variables (diff)
downloadnheko-02adcfdc388f365e8e78f9244a23d9c75e281370.tar.xz
Merge pull request #1163 from foresto/log-options
Control logging via command line or environment variable
Diffstat (limited to 'src/Logging.h')
-rw-r--r--src/Logging.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Logging.h b/src/Logging.h

index 4a5109a6..23ff8236 100644 --- a/src/Logging.h +++ b/src/Logging.h
@@ -6,11 +6,15 @@ #pragma once #include <memory> -#include <spdlog/logger.h> +#include <string> + +#include <QString> + +#include "spdlog/logger.h" namespace nhlog { void -init(const std::string &file); +init(const QString &level, const QString &path, bool to_stderr); std::shared_ptr<spdlog::logger> ui(); @@ -27,5 +31,4 @@ crypto(); std::shared_ptr<spdlog::logger> qml(); -extern bool enable_debug_log_from_commandline; }