[Box Backup-commit] COMMIT r1462 - box/chris/general/bin/bbstored
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 24 Mar 2007 19:57:50 +0000
Author: chris
Date: 2007-03-24 19:57:50 +0000 (Sat, 24 Mar 2007)
New Revision: 1462
Modified:
box/chris/general/bin/bbstored/bbstored.cpp
Log:
Initialise logging framework and set our program name to Box Backup (bbstored)
Modified: box/chris/general/bin/bbstored/bbstored.cpp
===================================================================
--- box/chris/general/bin/bbstored/bbstored.cpp 2007-03-24 19:57:11 UTC (rev 1461)
+++ box/chris/general/bin/bbstored/bbstored.cpp 2007-03-24 19:57:50 UTC (rev 1462)
@@ -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);