mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
Add a logger interface to the std modules
This commit is contained in:
parent
d072178cef
commit
06b8bd9382
1 changed files with 11 additions and 3 deletions
|
@ -12,6 +12,14 @@ const (
|
||||||
DEBUG = 5
|
DEBUG = 5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
interface Logger {
|
||||||
|
fatal(s string)
|
||||||
|
error(s string)
|
||||||
|
warn(s string)
|
||||||
|
info(s string)
|
||||||
|
debug(s string)
|
||||||
|
}
|
||||||
|
|
||||||
struct Log{
|
struct Log{
|
||||||
mut:
|
mut:
|
||||||
level int
|
level int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue