Apache Log4cxx  Version 2.0.0
Loading...
Searching...
No Matches
xmlsocketappender.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef _LOG4CXX_NET_XML_SOCKET_APPENDER_H
19#define _LOG4CXX_NET_XML_SOCKET_APPENDER_H
20
22
23namespace LOG4CXX_NS
24{
25namespace net
26{
27
34
35class LOG4CXX_EXPORT XMLSocketAppender : public SocketAppenderSkeleton
36{
37 public:
41 static int DEFAULT_PORT;
42
47
48
54
63
67 XMLSocketAppender(const helpers::InetAddressPtr& address, int port);
68
72 XMLSocketAppender(const LogString& host, int port);
73
74 protected:
75 int getDefaultDelay() const override;
76
77 int getDefaultPort() const override;
78
79 private:
80 // prevent copy and assignment statements
82 XMLSocketAppender& operator=(const XMLSocketAppender&);
83
84}; // class XMLSocketAppender
85
87
88} // namespace net
89} // namespace log4cxx
90
91#endif // _LOG4CXX_NET_XML_SOCKET_APPENDER_H
92
AppenderSkeleton(LOG4CXX_PRIVATE_PTR(AppenderSkeletonPrivate) priv)
SocketAppenderSkeleton(int defaultPort, int millisecondDelay)
A unconnected appender sending to defaultPort, with a retry after millisecondDelay when unable to est...
Sends spi::LoggingEvent elements to a remote a log server, usually in XML format.
Definition xmlsocketappender.h:36
XMLSocketAppender()
An unconnected appender using the default port.
static int DEFAULT_RECONNECTION_DELAY
The default reconnection delay (30000 milliseconds or 30 seconds).
Definition xmlsocketappender.h:46
int getDefaultDelay() const override
int getDefaultPort() const override
static int DEFAULT_PORT
The default port number of remote logging server (4560).
Definition xmlsocketappender.h:41
Definition propertysetter.h:27
LOG4CXX_PTR_DEF(JSONSocketAppender)
std::basic_string< logchar > LogString
Definition logstring.h:51
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition object.h:41
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:141