This commit is contained in:
parent
b30957b0c0
commit
0983484bc0
@ -25,10 +25,10 @@ pub fn main() {
|
||||
pine.new()
|
||||
|
||||
// You can set the level.
|
||||
|> pine.set_level(pine.level_info)
|
||||
|> pine.set_level(pine.level_info())
|
||||
|
||||
// As well as the format.
|
||||
|> pine.set_format(pine.format_json)
|
||||
|> pine.set_format(pine.format_json())
|
||||
|
||||
// And finally, the transport!
|
||||
|> pine.set_transport(pine.transport_file("logs.txt"))
|
||||
@ -69,7 +69,7 @@ pub fn main() {
|
||||
|
||||
// then see them all in action
|
||||
|> pine.info("hello world!")
|
||||
// info <unix millis> hello world! version=v1.0.2 page_views=69 opacity=0.89 checked_balance=false
|
||||
// info <unix millis> hello world! version=v1.0.2 page_views=69 opacity=0.89 checked_balance=False
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user