Index: src/ch/ch.vc140.vcxproj
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/ch/ch.vc140.vcxproj (.../ch.vc140.vcxproj) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/ch/ch.vc140.vcxproj (.../ch.vc140.vcxproj) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -512,6 +512,7 @@
+
@@ -775,6 +776,7 @@
4512;4714
+
Index: src/ch/ch.vc140.vcxproj.filters
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/ch/ch.vc140.vcxproj.filters (.../ch.vc140.vcxproj.filters) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/ch/ch.vc140.vcxproj.filters (.../ch.vc140.vcxproj.filters) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -254,6 +254,9 @@
Source Files\Shared\Logging
+
+ Source Files\Shared\Logging
+
@@ -433,6 +436,9 @@
Source Files\Shared\Logging
+
+ Source Files\Shared\Logging
+
Index: src/common/TLoggerInitializer.cpp
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/common/TLoggerInitializer.cpp (.../TLoggerInitializer.cpp) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/common/TLoggerInitializer.cpp (.../TLoggerInitializer.cpp) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -20,13 +20,13 @@
#include "TLoggerInitializer.h"
#include
#include
-#include
#include
#include
#include
#include
#include
#include
+#include "TMultiFileBackend.h"
namespace logging = boost::log;
namespace src = boost::log::sources;
@@ -37,7 +37,8 @@
using namespace boost::log::trivial;
-using LogSink = sinks::asynchronous_sink< sinks::text_multifile_backend >;
+using Backend = chcore::TMultiFileBackend;
+using LogSink = sinks::asynchronous_sink;
using LogSinkPtr = boost::shared_ptr;
struct TLoggerInitializer::InternalData
@@ -66,13 +67,15 @@
logging::add_common_attributes();
// sink BACKEND
- boost::shared_ptr< sinks::text_multifile_backend > backend = boost::make_shared< sinks::text_multifile_backend >();
+ boost::shared_ptr backend = boost::make_shared();
+/*
// Set up the file naming pattern
backend->set_file_name_composer
(
sinks::file::as_file_name_composer(expr::stream << expr::attr< std::wstring >("LogPath"))
);
+*/
// Sink FRONTEND
LogSinkPtr sink(new LogSink(backend));
Index: src/common/TMultiFileBackend.cpp
===================================================================
diff -u
--- src/common/TMultiFileBackend.cpp (revision 0)
+++ src/common/TMultiFileBackend.cpp (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -0,0 +1,34 @@
+// ============================================================================
+// Copyright (C) 2001-2016 by Jozef Starosczyk
+// ixen@copyhandler.com
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Library General Public License
+// (version 2) as published by the Free Software Foundation;
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// ============================================================================
+#include "stdafx.h"
+#include "TMultiFileBackend.h"
+
+namespace chcore
+{
+ TMultiFileBackend::TMultiFileBackend()
+ {
+
+ }
+
+ void TMultiFileBackend::consume(boost::log::record_view const& /*rec*/, string_type const& /*formatted_message*/)
+ {
+
+ }
+
+}
Index: src/common/TMultiFileBackend.h
===================================================================
diff -u
--- src/common/TMultiFileBackend.h (revision 0)
+++ src/common/TMultiFileBackend.h (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -0,0 +1,42 @@
+// ============================================================================
+// Copyright (C) 2001-2016 by Jozef Starosczyk
+// ixen@copyhandler.com
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU Library General Public License
+// (version 2) as published by the Free Software Foundation;
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this program; if not, write to the
+// Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+// ============================================================================
+#ifndef __TMULTIFILEBACKEND_H__
+#define __TMULTIFILEBACKEND_H__
+
+#include
+
+namespace chcore
+{
+ class TMultiFileBackend : public boost::log::sinks::basic_formatted_sink_backend< char >
+ {
+ public:
+ TMultiFileBackend();
+
+ void consume(boost::log::record_view const& rec, string_type const& formatted_message);
+
+ private:
+ unsigned long long m_ullRotateSize;
+ unsigned int m_uiMaxRotatedFiles;
+ unsigned int m_uiHandleCacheTime;
+
+ // map>>
+ };
+}
+
+#endif
Fisheye: Tag 205f3bfeed0082edb35430a9a0968699e5cc7fea refers to a dead (removed) revision in file `src/libchcore/TLoggerInfo.cpp'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 205f3bfeed0082edb35430a9a0968699e5cc7fea refers to a dead (removed) revision in file `src/libchcore/TLoggerInfo.h'.
Fisheye: No comparison available. Pass `N' to diff?
Index: src/libchcore/TSubTaskContext.h
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/libchcore/TSubTaskContext.h (.../TSubTaskContext.h) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/libchcore/TSubTaskContext.h (.../TSubTaskContext.h) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -29,7 +29,6 @@
#include "TBasePathData.h"
#include "TFileInfoArray.h"
#include "IFilesystem.h"
-#include "TLoggerInfo.h"
namespace chcore
{
Index: src/libchcore/libchcore.vc140.vcxproj
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/libchcore/libchcore.vc140.vcxproj (.../libchcore.vc140.vcxproj) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/libchcore/libchcore.vc140.vcxproj (.../libchcore.vc140.vcxproj) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -457,6 +457,7 @@
+
@@ -505,7 +506,6 @@
-
@@ -601,6 +601,7 @@
+
@@ -750,7 +751,6 @@
-
Index: src/libchcore/libchcore.vc140.vcxproj.filters
===================================================================
diff -u -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r205f3bfeed0082edb35430a9a0968699e5cc7fea
--- src/libchcore/libchcore.vc140.vcxproj.filters (.../libchcore.vc140.vcxproj.filters) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248)
+++ src/libchcore/libchcore.vc140.vcxproj.filters (.../libchcore.vc140.vcxproj.filters) (revision 205f3bfeed0082edb35430a9a0968699e5cc7fea)
@@ -87,9 +87,6 @@
{4a321c2c-525d-4a77-bad6-d01210bba74c}
-
- {0e547635-8b67-4a9e-9ade-40d3d7ffc5fc}
-
@@ -470,12 +467,12 @@
Source Files\Shared\Logging
-
- Source Files\Tools\Logging
-
Source Files\Library files
+
+ Source Files\Shared\Logging
+
@@ -862,11 +859,11 @@
Source Files\Shared\Logging
-
- Source Files\Tools\Logging
-
Source Files
+
+ Source Files\Shared\Logging
+
\ No newline at end of file