File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ But one can make it more colourful and add more details with initilization like
3939
4040``` julia
4141MiniLogger (minlevel = MiniLoggers. Debug,
42- format = " {[{datetime }] - {level} - :func}{{module}@{basename}:{line:cyan}:light_green}: {message}" ) |> global_logger
42+ format = " {[{timestamp }] - {level} - :func}{{module}@{basename}:{line:cyan}:light_green}: {message}" ) |> global_logger
4343
4444@debug " Values: " x y
4545@info " Values: " x y
@@ -55,7 +55,7 @@ Or, we can add small unicode magic and get fancy two-line logging format
5555
5656``` julia
5757MiniLogger (minlevel = MiniLoggers. Debug,
58- format = " ╭{[{datetime }] - {level} - :func}{{module}@{basename}:{line:cyan}:light_green}\n ╰→ {message}" ) |> global_logger
58+ format = " ╭{[{timestamp }] - {level} - :func}{{module}@{basename}:{line:cyan}:light_green}\n ╰→ {message}" ) |> global_logger
5959```
6060
6161![ colour3_fmt] ( images/colour3_fmt.png )
@@ -74,7 +74,7 @@ Also `MiniLoggers.jl` support Julia exceptions, so you can generate error messag
7474
7575``` julia
7676MiniLogger (minlevel = MiniLoggers. Debug,
77- format = " {[{datetime }] {level}:func} {module}@{basename}:{line:cyan}: {message}" ) |> global_logger
77+ format = " {[{timestamp }] {level}:func} {module}@{basename}:{line:cyan}: {message}" ) |> global_logger
7878
7979try
8080 error (" Some error" )
You can’t perform that action at this time.
0 commit comments