summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Logger/Logger_Service.h
blob: a97eea3e82f4863c76261be8b2a960c62fe54128 (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 "ace/Service_Object.h"

namespace CIAO
  {
    class CIAO_Logger_Export Logger_Service : public ACE_Service_Object
      {
      public:
        Logger_Service (void);
        virtual int init (int argc, ACE_TCHAR * argv[]);

        static int Initializer (void);
      private:
        void parse_args (int argc, ACE_TCHAR **argv);

        ACE_TString filename_;
        bool trace_;
      };
  }

static int TAO_Requires_CIAO_Logger_Service_Initializer =
  CIAO::Logger_Service::Initializer ();

typedef CIAO::Logger_Service CIAO_LOGGER_SERVICE;

ACE_STATIC_SVC_DECLARE (CIAO_LOGGER_SERVICE)
ACE_FACTORY_DECLARE (CIAO_Logger, CIAO_LOGGER_SERVICE)

#endif /*LOGGER_SERVICE_H_*/