AsmJit
Low-Latency Machine Code Generation
Logging interface.
This class can be inherited and reimplemented to fit into your own logging needs. When reimplementing a logger use Logger::_log() method to log customize the output.
There are two Logger
implementations offered by AsmJit:
FILE*
.Creates a Logger
instance.
Destroys the Logger
instance.
Returns FormatOptions of this logger.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Sets formatting options of this Logger to options
.
Resets formatting options of this Logger to defaults.
Returns formatting flags.
Tests whether the logger has the given flag
enabled.
Sets formatting flags to flags
.
Enables the given formatting flags
.
Disables the given formatting flags
.
Returns indentation of a given indentation group
.
Sets indentation of the given indentation group
to n
spaces.
Resets indentation of the given indentation group
to 0 spaces.
Returns padding of a given padding group
.
Sets padding of a given padding group
to n
.
Resets padding of a given padding group
to 0, which means that a default will be used.
Logs str
- must be reimplemented.
The function can accept either a null terminated string if size
is SIZE_MAX
or a non-null terminated string of the given size
. The function cannot assume that the data is null terminated and must handle non-null terminated inputs.
Reimplemented in asmjit::FileLogger, and asmjit::StringLogger.
SIZE_MAX
)noexcept[1/2]◆ Logs string str
, which is either null terminated or having size size
.
Logs content of a string str
.
Formats the message by using snprintf()
and then passes the formatted string to _log().
Formats the message by using vsnprintf()
and then passes the formatted string to _log().
Format options.