summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Logger/logger_i.h
blob: b477b2a2aa058a61932ada8536e405874ea60820 (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
/* -*- C++ -*- */

#if !defined (LOGGER_I_H)
#define LOGGER_I_H


#include "orbsvcs/LoggerS.h"
#include "ace/streams.h"
#include <string.h>


class Logger_Factory_i : public virtual POA_Logger_Factory
{
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
{
public:

  // constructor
  Logger_i (const char* name);

  // destructor
  virtual ~Logger_i (void);

  virtual void log (const char *message, 
		    CORBA::Environment &_env);

private:
  // logger identification
  char *name_;
};

#endif /* LOGGER_I_H */