blob: b3794aed5f5ea896ae258911c29d7b2a1776b525 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// $Id$
#include "ace/ACE.h"
#include "orbsvcs/LoggerC.h"
#include "orbsvcs/Log/Logger_i.h"
Logger_ptr
Logger_Factory_i::make_logger (const char *name,
CORBA::Environment &_env)
{
Logger_i *l = new Logger_i (name);
return l->_this (_env);
}
Logger_Factory_i::Logger_Factory_i (void)
{
}
Logger_i::Logger_i (const char *name)
: name_ (ACE_OS::strdup (name))
{
}
Logger_i::~Logger_i (void)
{
ACE_OS::free (this->name_);
}
void
Logger_i::log (const char *message,
CORBA::Environment &_env)
{
// This is very simple-minded and can certainly be improved.
ACE_DEBUG ((LM_DEBUG,
"%s",
message));
}
|