forked from AbleOS/ableos
26 lines
502 B
Markdown
26 lines
502 B
Markdown
# Logging Service
|
|
The logging service uses the first byte in the message to identify the request type.
|
|
|
|
## Current Log Impl
|
|
<!-- This is a hack but should be noted -->
|
|
[STR] -> string
|
|
[U8] -> Log Level. Refer to the log level table.
|
|
|
|
## Log
|
|
[U8] -> Log a message.
|
|
[U8] -> Log Level.
|
|
[U64] -> Path length
|
|
[STR] -> Path String
|
|
[U64] -> Line number
|
|
[U64] -> column number
|
|
[U64] -> Log String length
|
|
[STR] -> Log String
|
|
|
|
|
|
## Log Level Table
|
|
0 -> Error
|
|
1 -> Warn
|
|
2 -> Info
|
|
3 -> Debug
|
|
4 -> Trace
|