summaryrefslogtreecommitdiff
path: root/bin/bbstored
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-03-24 23:41:48 +0000
committerChris Wilson <chris+github@qwirx.com>2007-03-24 23:41:48 +0000
commit718b0a1122e0067187d991b52927c1eeef68ec50 (patch)
tree730f20afa182c8e6cd0dbde900f97b57ab43e6cc /bin/bbstored
parentcdc320f5b75497c0ac909a36e435110fa1177400 (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.cpp5
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);