|
| | File () |
| | Construct with no associated system file.
|
| | ~File ()=default |
| | Destroy the object.
|
| bool | isOpen () const noexcept |
| | Determine if a system file is associated with the log.
|
| bool | open (std::filesystem::path const &path) |
| | Associate a system file with the log.
|
| bool | closeAndReopen () |
| | Close and re-open the system file associated with the log This assists in interoperating with external log management tools.
|
| void | close () |
| | Close the system file if it is open.
|
| void | write (char const *text) |
| | write to the log file.
|
| void | writeln (char const *text) |
| | write to the log file and append an end of line marker.
|
| void | write (std::string const &str) |
| | Write to the log file using std::string.
|
| void | writeln (std::string const &str) |
Manages a system file containing logged output.
The system file remains open during program execution. Interfaces are provided for interoperating with standard log management tools like logrotate(8): http://linuxcommand.org/man_pages/logrotate8.html
- Note
- None of the listed interfaces are thread-safe.
Definition at line 53 of file Log.h.