log4cpp
1.1.6
Toggle main menu visibility
Loading...
Searching...
No Matches
OstreamAppender.hh
Go to the documentation of this file.
1
/*
2
* OstreamAppender.hh
3
*
4
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5
* Copyright 2000, Bastiaan Bakker. All rights reserved.
6
*
7
* See the COPYING file for the terms of usage and distribution.
8
*/
9
10
#ifndef _LOG4CPP_OSTREAMAPPENDER_HH
11
#define _LOG4CPP_OSTREAMAPPENDER_HH
12
13
#include <iostream>
14
#include <
log4cpp/LayoutAppender.hh
>
15
#include <
log4cpp/Portability.hh
>
16
#include <string>
17
18
namespace
log4cpp
{
19
23
class
LOG4CPP_EXPORT
OstreamAppender
:
public
LayoutAppender
{
24
public
:
25
OstreamAppender
(
const
std::string& name, std::ostream* stream);
26
virtual
~OstreamAppender
();
27
28
virtual
bool
reopen
();
29
virtual
void
close
();
30
31
protected
:
32
virtual
void
_append
(
const
LoggingEvent
& event);
33
34
std::ostream*
_stream
;
35
};
36
}
// namespace log4cpp
37
38
#endif
// _LOG4CPP_OSTREAMAPPENDER_HH
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition
Export.hh:26
LayoutAppender.hh
Portability.hh
log4cpp::LayoutAppender::LayoutAppender
LayoutAppender(const std::string &name)
Definition
LayoutAppender.cpp:15
log4cpp::OstreamAppender::reopen
virtual bool reopen()
Reopens the output destination of this Appender, e.g.
Definition
OstreamAppender.cpp:39
log4cpp::OstreamAppender::close
virtual void close()
Release any resources allocated within the appender such as file handles, network connections,...
Definition
OstreamAppender.cpp:28
log4cpp::OstreamAppender::_append
virtual void _append(const LoggingEvent &event)
Log in Appender specific way.
Definition
OstreamAppender.cpp:32
log4cpp::OstreamAppender::_stream
std::ostream * _stream
Definition
OstreamAppender.hh:34
log4cpp::OstreamAppender::OstreamAppender
OstreamAppender(const std::string &name, std::ostream *stream)
Definition
OstreamAppender.cpp:21
log4cpp
The top level namespace for all 'Log for C++' types and classes.
Definition
AbortAppender.hh:16
log4cpp::LoggingEvent
The internal representation of logging events.
Definition
LoggingEvent.hh:32
include
log4cpp
OstreamAppender.hh
Generated by
1.17.0