/tg/ Station 13 - Modules - TypesVar Details - Proc Details

log_entry

A datum which contains log information.

Vars

categoryCategory of the log entry.
dataData of the log entry; optional.
flagsBitfield that describes how exactly to log stuff exactly See code/__DEFINES/logging/dm
idUnique id of the log entry.
messageMessage of the log entry.
next_idNext id to assign to a log entry.
schema_versionSchema version of the log entry.
semver_storeSemver store of the log entry, used to store the schema of data entries
timestampUnix timestamp of the log entry.

Procs

to_json_textConverts the log entry to a JSON string.
to_readable_textConverts the log entry to a human-readable string.
write_entry_to_fileWrites the log entry to a file.
write_readable_entry_to_fileWrites the log entry to a file as a human-readable string.

Var Details

category

Category of the log entry.

data

Data of the log entry; optional.

flags

Bitfield that describes how exactly to log stuff exactly See code/__DEFINES/logging/dm

id

Unique id of the log entry.

message

Message of the log entry.

next_id

Next id to assign to a log entry.

schema_version

Schema version of the log entry.

semver_store

Semver store of the log entry, used to store the schema of data entries

timestamp

Unix timestamp of the log entry.

Proc Details

to_json_text

Converts the log entry to a JSON string.

to_readable_text

Converts the log entry to a human-readable string.

write_entry_to_file

Writes the log entry to a file.

write_readable_entry_to_file

Writes the log entry to a file as a human-readable string.