added: to config: log_time_zone_id (size_t) identifier

this is the time zone identifier used in log messages



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@882 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-09-06 17:50:14 +00:00
parent 0c6ddc2218
commit 9174555ff8
8 changed files with 77 additions and 7 deletions

View File

@@ -20,6 +20,9 @@
#include "textstream/textstream.h"
class TimeZones;
class Log
{
@@ -28,6 +31,7 @@ public:
Log();
~Log();
void SetTimeZones(TimeZones * ptime_zones);
void Init(int log_level_, bool save_each_line_, const std::string & log_file_, bool log_std, int log_max_requests);
Log & operator<<(const void * s);
@@ -47,6 +51,8 @@ public:
Log & operator<<(LogManipulators m);
Log & operator<<(const PT::Date & date);
void PrintDate(const PT::Date & date, size_t time_zone_id);
template<typename char_type, size_t stack_size, size_t heap_block_size>
Log & operator<<(const PT::TextStreamBase<char_type, stack_size, heap_block_size> & buf);
@@ -67,6 +73,9 @@ public:
private:
// time zones for printing the time in the log file
TimeZones * time_zones;
// buffer for the log
TextStream<std::wstring> buffer;