blob: 0ebbd53d57ecbf6b7d51624a74bc4a6033132762 (
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
|
// $Id$
#ifndef CIAO_LOGGER_SERVICE_H_
#define CIAO_LOGGER_SERVICE_H_
#include "CIAO_Logger_Export.h"
#include "CIAOLoggerFactory.h"
#include "File_Logger_Backend.h"
namespace CIAO
{
class CIAO_Logger_Export Logger_Service : public CIAOLoggerFactory
{
public:
Logger_Service (void);
virtual int init (int argc, ACE_TCHAR * argv[]);
virtual ACE_Log_Msg_Backend * get_logger_backend (CORBA::ORB_ptr orb);
private:
void parse_args (int argc, ACE_TCHAR **argv);
void set_levels (void);
ACE_TString filename_;
bool trace_;
int log_level_;
};
} // DAnCE
ACE_FACTORY_DECLARE (CIAO_Logger, Logger_Service)
#endif /*LOGGER_SERVICE_H_*/
|