[Box Backup-commit] COMMIT r1488 - box/chris/merge/bin/bbstored
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 24 Mar 2007 23:41:48 +0000
Author: chris
Date: 2007-03-24 23:41:48 +0000 (Sat, 24 Mar 2007)
New Revision: 1488
Modified:
box/chris/merge/bin/bbstored/bbstored.cpp
Log:
Initialise logging framework and set our program name to
"Box Backup (bbstored)". (refs #3, merges [1462])
Modified: box/chris/merge/bin/bbstored/bbstored.cpp
===================================================================
--- box/chris/merge/bin/bbstored/bbstored.cpp 2007-03-24 23:41:06 UTC (rev 1487)
+++ box/chris/merge/bin/bbstored/bbstored.cpp 2007-03-24 23:41:48 UTC (rev 1488)
@@ -10,6 +10,7 @@
#include "Box.h"
#include "BackupStoreDaemon.h"
#include "MainHelper.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -17,6 +18,10 @@
{
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);