blob: 07aa92d280f2aa7925432fc5dcf469db37202516 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* -*- C++ -*- */
// ============================================================================
//
// $Id$
//
// = LIBRARY
// TAO services
//
// = FILENAME
// Logger_i.h
//
// = AUTHOR
// Marina Spivak <marina@cs.wustl.edu>,
// Sergio Flores-Gaitan <sergio@cs.wustl.edu>, and
// Matthew Braun <mjb2@cec.wustl.edu>
// ============================================================================
#if !defined (TAO_ORBSVCS_LOGGER_I_H)
#define TAO_ORBSVCS_LOGGER_I_H
#include "orbsvcs/LoggerS.h"
class TAO_ORBSVCS_Export Logger_Factory_i : public virtual POA_Logger_Factory
{
// = TITLE
// Create a <Logger> of type <name>.
public:
Logger_Factory_i (void);
// constructor.
virtual Logger_ptr make_logger (const char *name,
CORBA::Environment &_env);
// This function creates and returns a logger with the given name.
};
class Logger_i : public virtual POA_Logger
{
// = TITLE
// Used to log messages to a logging server.
public:
Logger_i (const char* name);
// constructor
virtual ~Logger_i (void);
// destructor
virtual void log (const Logger::Log_Record &log_rec,
CORBA::Environment &_env);
private:
ACE_Log_Priority priority_conversion (Logger::Log_Priority priority);
// This converts from the IDL defined <Log_Priority> enumerated type
// to the <ACE_Log_Priority> enumerated type.
char *name_;
// Logger identification.
};
#endif /* TAO_ORBSVCS_LOGGER_I_H */
|