NAME
Chroniton::Message - a message to be added to a Chroniton::Messages
queue.
SYNOPSIS
See Chroniton::Messages.
CONSTRUCTORS
_new (file, message, type, level)
Creates a new instance. File is the filename that message applies to. Type is "error", "warning", "message", or "debug". Level is the numeric severity level (0 being a debugging message, 100 meaning that an explosion is imminent).
Really for Internal Use Only, hence the _ prefix.
error(filename, message)
warning
message
debug
Use these constructors to create the appropriate type of message.
METHODS
id
Returns the numberic id, -1 by default but changed to the insertion order by Chroniton::Messages
.
set_id(id)
Sets the id
to id,
string([verbose?, suppress_progname?])
Stringifies the message for printing to a terminal. use YAML or Data::Dumper to prevent loss of information if saving to a file.
If verbose is true, extra information is printed. If suppress_progname is true, $0
is not printed before each line.