summary refs log tree commit diff
path: root/include/Logging.hpp
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 19:18:12 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 19:18:12 +0300
commit8704265978572e60f8b04d89cec2f404f5ea4113 (patch)
treef1e272705c26ce2b0121d6fffccd60f98246b84d /include/Logging.hpp
parentAdd Visual Studio 2017 support (#336) (diff)
parentUpdate build instructions (diff)
downloadnheko-8704265978572e60f8b04d89cec2f404f5ea4113.tar.xz
Merge branch 'e2ee'
- Support for e2ee rooms
- Implement categories & file logging
- Let the user know when the app can't reach the server (#93)

fixes #13
fixes #326
Diffstat (limited to 'include/Logging.hpp')
-rw-r--r--include/Logging.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/Logging.hpp b/include/Logging.hpp
new file mode 100644

index 00000000..2feae60d --- /dev/null +++ b/include/Logging.hpp
@@ -0,0 +1,21 @@ +#pragma once + +#include <memory> +#include <spdlog/spdlog.h> + +namespace nhlog { +void +init(const std::string &file); + +std::shared_ptr<spdlog::logger> +ui(); + +std::shared_ptr<spdlog::logger> +net(); + +std::shared_ptr<spdlog::logger> +db(); + +std::shared_ptr<spdlog::logger> +crypto(); +}