17#ifndef _DECAF_UTIL_LOGGING_STREAMHANDLER_H_
18#define _DECAF_UTIL_LOGGING_STREAMHANDLER_H_
66 bool writerNotInitialized;
151 void write(
const std::string& value );
154 void initializeWritter();
Base interface for any class that wants to represent an output stream of bytes.
Definition: OutputStream.h:39
A Handler object takes log messages from a Logger and exports them.
Definition: Handler.h:49
LogRecord objects are used to pass logging requests between the logging framework and individual log ...
Definition: LogRecord.h:41
Stream based logging Handler.
Definition: StreamHandler.h:56
virtual void publish(const LogRecord &record)
Publish the Log Record to this Handler.
virtual bool isLoggable(const LogRecord &record) const
Check if this Handler would actually log a given LogRecord.
StreamHandler(decaf::io::OutputStream *stream, Formatter *formatter)
Create a StreamHandler, with no current output stream.
virtual void setOuputStream(decaf::io::OutputStream *stream)
Change the output stream.
StreamHandler()
Create a StreamHandler, with no current output stream.
virtual void flush()
Flush the Handler's output, clears any buffers.
void close(bool closeStream)
Closes this handler, but the underlying output stream is only closed if closeStream is true.
virtual void close()
Close the current output stream.
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25