|
Nektar++
|
Base class for log output handling. More...
#include <Log.hpp>
Public Member Functions | |
| LogOutput ()=default | |
| Default constructor. | |
| virtual | ~LogOutput ()=default |
| virtual void | Log (const std::string &msg)=0 |
| Write a log message. | |
| bool | IsTty () const |
| Returns true if this is an interactive (tty) terminal (e.g. stdout). | |
Protected Member Functions | |
| virtual void | Finalise ()=0 |
| Finalise the log. | |
Protected Attributes | |
| bool | m_isTty = true |
| True if this log output is tty-based. | |
Base class for log output handling.
This class defines the abstract concept of log writing, where subclasses implement concrete implementations for e.g. writing to stdout or a file.
|
default |
Default constructor.
|
virtualdefault |
|
protectedpure virtual |
Finalise the log.
When called, this function should any finalising required for the log (e.g. closing a file).
Implemented in Nektar::StreamOutput.
|
inline |
|
pure virtual |
Write a log message.
Subclasses should override this function to write out the log message defined in msg.
| msg | Log message to write. |
Implemented in Nektar::StreamOutput.
|
protected |
True if this log output is tty-based.
Definition at line 106 of file Log.hpp.
Referenced by IsTty(), and Nektar::StreamOutput::StreamOutput().