Skip to content

Commit cc232be

Browse files
authored
Merge pull request #20 from Arkoniak/upgrade_03
small readme fix
2 parents 7d48e61 + e646163 commit cc232be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ But one can make it more colourful and add more details with initilization like
3939

4040
```julia
4141
MiniLogger(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
5757
MiniLogger(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
7676
MiniLogger(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

7979
try
8080
error("Some error")

0 commit comments

Comments
 (0)