2 #include "ace/OS_NS_time.h"
7 log_file
.open("Logger.txt");
10 Logger_i::~Logger_i ()
15 CORBA::Boolean
Logger_i::log_message (const char * message
)
17 ACE_OS::time(&log_time
);
18 log_time_string
= ACE_OS::ctime(&log_time
);
19 // Replace carriage return with string delimiter.
20 log_time_string
[24] = '\0';
21 log_file
<< ACE_TEXT_ALWAYS_CHAR(log_time_string
.c_str()) << " "
22 << message
<< std::endl
;