17#ifndef _DECAF_UTIL_LOGGING_STREAMHANDLER_H_
18#define _DECAF_UTIL_LOGGING_STREAMHANDLER_H_
66 bool writerNotInitialized;
70 StreamHandler(
const StreamHandler& );
71 StreamHandler& operator= (
const StreamHandler& );
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
LogRecord objects are used to pass logging requests between the logging framework and individual log ...
Definition LogRecord.h:41
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
Definition BlockingByteArrayInputStream.h:25
Definition ConsoleHandler.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25