8 const char * LogDate(time_t t);
 
   9 //-----------------------------------------------------------------------------
 
  11 STG_LOGGER & GetStgLogger();
 
  12 //-----------------------------------------------------------------------------
 
  13 class STG_LOGGER_LOCKER
 
  16     STG_LOGGER_LOCKER(pthread_mutex_t * m) : mutex(m) { pthread_mutex_lock(mutex); };
 
  17     ~STG_LOGGER_LOCKER() { pthread_mutex_unlock(mutex); };
 
  20     STG_LOGGER_LOCKER(const STG_LOGGER_LOCKER & rvalue);
 
  21     STG_LOGGER_LOCKER & operator=(const STG_LOGGER_LOCKER & rvalue);
 
  23     pthread_mutex_t * mutex;
 
  25 //-----------------------------------------------------------------------------
 
  28 friend STG_LOGGER & GetStgLogger();
 
  32     void SetLogFileName(const std::string & fn);
 
  33     void operator()(const char * fmt, ...);
 
  37     STG_LOGGER(const STG_LOGGER & rvalue);
 
  38     STG_LOGGER & operator=(const STG_LOGGER & rvalue);
 
  40     const char * LogDate(time_t t);
 
  43     pthread_mutex_t mutex;
 
  45 //-----------------------------------------------------------------------------