|
|
@@ -137,11 +137,12 @@ private: |
|
|
|
|
|
|
|
void init ( bool loggable=true ) |
|
|
|
{ |
|
|
|
_new_state = _old_state = NULL; |
|
|
|
_nest = 0; |
|
|
|
|
|
|
|
if ( loggable ) |
|
|
|
{ |
|
|
|
_id = ++_log_id; |
|
|
|
_old_state = NULL; |
|
|
|
_nest = 0; |
|
|
|
|
|
|
|
ensure_size( _id ); |
|
|
|
|
|
|
@@ -152,6 +153,9 @@ private: |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/* not implemented */ |
|
|
|
const Loggable & operator= ( const Loggable &rhs ); |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
static const char *escape ( const char *s ); |
|
|
@@ -221,6 +225,7 @@ public: |
|
|
|
|
|
|
|
static bool do_this ( const char *s, bool reverse ); |
|
|
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
|
|
|
void log_start ( void ); |
|
|
@@ -251,6 +256,10 @@ class Logger |
|
|
|
Loggable *_this; |
|
|
|
Logger ( ) {} |
|
|
|
|
|
|
|
/* not permitted */ |
|
|
|
Logger ( const Logger &rhs ); |
|
|
|
const Logger & operator= ( const Logger &rhs ); |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
Logger ( Loggable *l ) : _this( l ) |
|
|
@@ -286,6 +295,10 @@ class Log_Entry |
|
|
|
char **_sa; |
|
|
|
int _i; |
|
|
|
|
|
|
|
/* not permitted */ |
|
|
|
Log_Entry ( const Log_Entry &rhs ); |
|
|
|
Log_Entry & operator= ( const Log_Entry &rhs ); |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
struct Pair |
|
|
|