File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -300,18 +300,18 @@ escape them so they are not interpreted by the `DateFormat` code. Example:
300
300
``` julia
301
301
julia> using LoggingExtras
302
302
303
- julia> rotating_logger = DatetimeRotatingFileLogger (pwd (), raw " \a\c\c\e\s\s -YYYY-mm-dd-HH-MM-SS .\l\o\g " );
303
+ julia> rotating_logger = DatetimeRotatingFileLogger (pwd (), raw " \a\c\c\e\s\s -YYYY-mm-dd-HH-MM.\l\o\g " );
304
304
305
305
julia> with_logger (rotating_logger) do
306
306
@info (" This goes in one file" )
307
- sleep (1.1 )
307
+ sleep (61 ) # Sleep until next minute
308
308
@info (" This goes in another file" )
309
309
end
310
310
311
311
julia> filter (f -> endswith (f, " .log" ), readdir (pwd ()))
312
312
2 - element Array{String,1 }:
313
- " access-2020-07-13-13-24-13 .log"
314
- " access-2020-07-13-13-24-14 .log"
313
+ " access-2020-07-13-13-24.log"
314
+ " access-2020-07-13-13-25 .log"
315
315
```
316
316
317
317
The user implicitly controls when the files will be rolled over based on the `DateFormat` given.
You can’t perform that action at this time.
0 commit comments