summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/LoggerAdminI.h
blob: f697fb2dfdce9425e7a7a8a4f66fd11a5b830014 (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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

#ifndef ICE_LOGGER_ADMIN_I_H
#define ICE_LOGGER_ADMIN_I_H

#include <Ice/Config.h>
#include <Ice/Logger.h>
#include <Ice/PropertiesF.h>
#include <Ice/CommunicatorF.h>

namespace IceInternal
{

//
// A logger that works in tandem with a "Logger" admin facet.
//
class LoggerAdminLogger : public Ice::Logger
{
public:

    //
    // Return the associated Admin facet
    //
    virtual Ice::ObjectPtr getFacet() const = 0;

    //
    // Destroy this logger, in particular join any thread
    // that this logger may have started
    //
    virtual void destroy() = 0;
};
ICE_DEFINE_PTR(LoggerAdminLoggerPtr, LoggerAdminLogger);

LoggerAdminLoggerPtr
createLoggerAdminLogger(const Ice::PropertiesPtr&, const Ice::LoggerPtr&);

}

#endif