Contents

namespace

SushiEngine::Logging

Declared in
engine/foundation/addon/include/SushiEngine/addon/addon_host.hpp

Contains

Enumerations

LogLevel

Orders a record's severity from the most verbose to the process-ending one.

WriterMode

Selects who drains the rings.

Typedefs

LogClock

Returns monotonic nanoseconds from an arbitrary fixed origin.

Variables

log_line_capacity

Holds the buffer size any record from a 1024-character message needs.

log_message_capacity

Holds the size of the stack buffer a message is formatted into, terminator excluded.

K_TRACE_LOG_CATEGORY

Tags every line a host logs about a trace capture.

Functions

format_argument

Writes "true" or "false".

copy_until_placeholder

Copies format up to its first "{}" with "{{" and "}}" unescaped.

format_into

Copies the rest of format; writes "{?}" for each unmatched "{}".

hash_category_name

Returns the 64-bit FNV-1a hash of name.

make_log_category

Returns a category for name with default_level as its starting threshold.

log_level_name

Returns the upper-case name of level, or "UNKNOWN" for a value outside it.

format_log_line

Writes "[HH:MM:SS.mmm] [LEVEL] [category] [thread N] message (file:line)\n" into destination, wrapping the day and holding for a negative wall_clock_nanoseconds; a '
' or '\r' inside a field becomes one space.

active_logger

Returns this binary's installed logger, or nullptr when none is installed.

install_active_logger

Makes logger the one active_logger() returns in this binary; nullptr uninstalls.

thread_ownership_list_size_for_testing

Returns how many rings the calling thread's ownership list retains.

log_trace_start

Logs a warning for each fact in result that degrades the capture.

log_trace_write

Logs where the trace went, or an error naming why it did not.