blob: d23787a08e9564a0d314d5b1a604f687dd71888a (
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 (void);
virtual ~Logger_i (void);
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_ */
|