6 #include "utilities/colorPrint.h"
13 Q_INVOKABLE
explicit VFS_logger(
int logLevel,
int logTime, QString adminAddress);
36 void email(QString address, QString subject, QString message);
A logger node with color formatting and different channels for message types.
int _logLevel
Filter log entries by this value... lower entries are very important, higher ones are more fine-grain...
int _logTime
Include log entry time, where 0 = none, 1 = locale time, 2 = locale time and date,...
virtual void submit(VFS_request *r)
Submit settings to this logger.
virtual VFS_node * find(VFS_request *r)
This method will return this if the path is settings, otherwise VFS_node::find().
VFS_node * _critical
Crash may be imminent, the administrator address will be emailed this message if it is possible.
ColorPrint cp_warn
Color settings for warning messages.
VFS_node * _warnings
Warning logs, which provide non-critical information.
ColorPrint cp_error
Color settings for error messages.
VFS_node * _log
Message collector node, which subscribes to the other nodes as an aggregator.
ColorPrint cp_bold
Color settings for bold printing.
virtual void applyDiff(VFS_request *t)
Receive log information from a logging mechanism.
void email(QString address, QString subject, QString message)
Email an administrator about a problem.
QString _adminEmail
For CRITICAL() messages, this is the address that will be emailed.
VFS_node * _messages
A message logging node.
VFS_node * _errors
Error logs, which mean there is a problem but not a crash.
Q_INVOKABLE VFS_logger(int logLevel, int logTime, QString adminAddress)
VFS_logger constructor.
VFS_node is the base class from which all other VFS_node classes derive.
The base class for all requests between nodes.