aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-02-16 15:17:47 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2018-02-28 20:07:14 +0100
commit38c3b4c58e6c6b86d6241183be1814bac2e037d2 (patch)
tree2f5dd6ea25a64f446133c48209ceb53fd4615d71 /include/log.h
parentd6ae8192be443749fcd1f593db0f9be4d039da93 (diff)
downloadlibnitrokey-38c3b4c58e6c6b86d6241183be1814bac2e037d2.tar.gz
libnitrokey-38c3b4c58e6c6b86d6241183be1814bac2e037d2.tar.bz2
Log current device ID
Allow logger to set global prefix Used to indicate current device Store USB path when used to connection as well Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/log.h b/include/log.h
index 89eda56..b969b81 100644
--- a/include/log.h
+++ b/include/log.h
@@ -86,6 +86,11 @@ namespace nitrokey {
private:
LogHandler *mp_loghandler;
Loglevel m_loglevel;
+ static std::string prefix;
+ public:
+ static void setPrefix(std::string prefix = std::string());
+
+ private:
static Log *mp_instance;
};