LogMessage API Reference¶
Parameters¶
message¶
Type:
stringDefault: REQUIRED
Description: The message to log.
Example:
Hello, World!
Variables¶
unix¶
Type: `integer
Default: SET AUTOMATICALLY
Description: The unix timestamp that the LogMessage was created.
Example:
1617225013
uuid¶
Type:
stringDefault: SET AUTOMATICALLY
Description: The unique identifier for the LogMessage.
Example:
1617225013-123
Methods¶
colored¶
Description: Returns the message as a string with ANSI color codes.
Returns:
string
Dunders¶
__str__Description: Returns the message as a string (without ANSI color coding)
Returns:
string
__repr__Description: Nearly indentical to
__str__but does not include the timestamp.Returns:
string
__eq__Description: Compares the
uuidof two LogMessages, if they are the same, returnsTrue, otherwiseFalse.Returns:
bool
__ne__Description: Compares the
uuidof two LogMessages, if they are different, returnsTrue, otherwiseFalse.Returns:
bool