Base class for all logging output streams. More...
#include <stream.hpp>
Public Member Functions | |
| stream (nbool isEnable=true) | |
| virtual nbool | logBypass (const nchar *message) |
| Log message directly without formatting. | |
| nbool | logBypass (const std::string &message) |
| nbool | isNull () const |
| Checks if this stream is a null object. | |
| virtual nbool | isEnable () const |
| virtual void | setEnable (nbool isEnable) |
| virtual const std::string & | getName () const =0 |
| virtual nbool | init () |
| Initializes the stream, transitioning its state from RELEASED to INITIALIZED. | |
| virtual nbool | isInit () const |
| virtual nbool | rel () |
| Releases the stream's resources, transitioning its state from INITIALIZED to RELEASED. | |
Base class for all logging output streams.
Provides the fundamental interface for logging destinations such as console output, file output, or network logging.
Initializes the stream, transitioning its state from RELEASED to INITIALIZED.
| nbool by::stream::isNull | ( | ) | const |
Checks if this stream is a null object.
Log message directly without formatting.
Reimplemented in by::logger, by::fileLogStream, and by::consoleStream.
Releases the stream's resources, transitioning its state from INITIALIZED to RELEASED.