diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-24 23:41:48 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-24 23:41:48 +0000 |
commit | 718b0a1122e0067187d991b52927c1eeef68ec50 (patch) | |
tree | 730f20afa182c8e6cd0dbde900f97b57ab43e6cc /bin/bbstored | |
parent | cdc320f5b75497c0ac909a36e435110fa1177400 (diff) |
Initialise logging framework and set our program name to
"Box Backup (bbstored)". (refs #3, merges [1462])
Diffstat (limited to 'bin/bbstored')
-rw-r--r-- | bin/bbstored/bbstored.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bbstored/bbstored.cpp b/bin/bbstored/bbstored.cpp index 3eaf2639..c0ea1199 100644 --- a/bin/bbstored/bbstored.cpp +++ b/bin/bbstored/bbstored.cpp @@ -10,6 +10,7 @@ #include "Box.h" #include "BackupStoreDaemon.h" #include "MainHelper.h" +#include "Logging.h" #include "MemLeakFindOn.h" @@ -17,6 +18,10 @@ int main(int argc, const char *argv[]) { MAINHELPER_START + Logging::SetProgramName("Box Backup (bbstored)"); + Logging::ToConsole(true); + Logging::ToSyslog (true); + BackupStoreDaemon daemon; return daemon.Main(BOX_FILE_BBSTORED_DEFAULT_CONFIG, argc, argv); |