summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/SmartProxies/Logger_i.h
blob: cacf61448fc824b9960e3361f0b826d7e7c436dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef LOGGERI_H_
#define LOGGERI_H_

#include "LoggerS.h"
#include "ace/String_Base.h"
#include <fstream>

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class  Logger_i : public virtual POA_Logger
{
public:
  Logger_i ();
  virtual ~Logger_i ();
private:
  ofstream log_file;      // Output file stream to which messages are logged.
  time_t log_time;        // Needed for creating a time stamp.
  ACE_TString log_time_string;  // The time stamp string.

virtual CORBA::Boolean log_message (const char * message);
};
#endif /* LOGGERI_H_  */