mirror of
https://github.com/gechandesu/structlog.git
synced 2026-12-05 22:55:02 +03:00
make it work with latest V, bump version
This commit is contained in:
1 parent
9d9c5a48b1
commit
6ef00bc4d5
2 files changed
+4
-7
No files matched your search
+3
-6
@@ -9,8 +9,7 @@ import x.json2 as json
|
|||||||
|
|
||||||
pub interface RecordHandler {
|
pub interface RecordHandler {
|
||||||
mut:
|
mut:
|
||||||
// handle method must prepare the Record for writing and write it.
|
handle(rec Record) ! // handle method must prepare the Record for writing and write it.
|
||||||
handle(rec Record) !
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum Level {
|
pub enum Level {
|
||||||
@@ -28,12 +27,11 @@ pub type Value = i8
|
|||||||
| i32
|
| i32
|
||||||
| i64
|
| i64
|
||||||
| int
|
| int
|
||||||
| isize
|
|
||||||
| u8
|
| u8
|
||||||
| u16
|
| u16
|
||||||
| u32
|
| u32
|
||||||
| u64
|
| u64
|
||||||
| usize
|
| uint
|
||||||
| f32
|
| f32
|
||||||
| f64
|
| f64
|
||||||
| string
|
| string
|
||||||
@@ -49,12 +47,11 @@ pub fn (v Value) str() string {
|
|||||||
i32 { v.str() }
|
i32 { v.str() }
|
||||||
i64 { v.str() }
|
i64 { v.str() }
|
||||||
int { v.str() }
|
int { v.str() }
|
||||||
isize { v.str() }
|
|
||||||
u8 { v.str() }
|
u8 { v.str() }
|
||||||
u16 { v.str() }
|
u16 { v.str() }
|
||||||
u32 { v.str() }
|
u32 { v.str() }
|
||||||
u64 { v.str() }
|
u64 { v.str() }
|
||||||
usize { v.str() }
|
uint { v.str() }
|
||||||
f32 { v.str() }
|
f32 { v.str() }
|
||||||
f64 { v.str() }
|
f64 { v.str() }
|
||||||
string { v.str() }
|
string { v.str() }
|
||||||
|
|||||||
Reference in new issue
Block a user