forked from AbleOS/ableos
spec work
This commit is contained in:
parent
d21654dd4b
commit
5fc2e2a6be
25
sysdata/spec/Logging Service spec.md
Normal file
25
sysdata/spec/Logging Service spec.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# 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 -->
|
||||
[..] -> string
|
||||
[+1] -> Log Level. Refer to the log level table.
|
||||
|
||||
## Log
|
||||
[0] -> Log a message.
|
||||
[1] -> Log Level.
|
||||
[2..10] -> Path length
|
||||
[11..] -> Path String
|
||||
[..u64] -> Line number
|
||||
[..u64] -> column number
|
||||
[..u64] -> Log String length
|
||||
[..] -> Log String
|
||||
|
||||
|
||||
## Log Level Table
|
||||
0 -> Error
|
||||
1 -> Warn
|
||||
2 -> Info
|
||||
3 -> Debug
|
||||
4 -> Trace
|
Loading…
Reference in a new issue