You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ Manual rotation (e.g. on `SIGHUP`):
66
66
```go
67
67
import (
68
68
"log"
69
+
"os"
69
70
"os/signal"
70
71
"syscall"
71
72
@@ -199,6 +200,7 @@ On each new log file creation, timberjack:
199
200
|**Manual (custom reason)**|`Logger.RotateWithReason(s)`| When called | Immediate | No | N/A |**No**|`-<sanitized reason>`| Falls back to `Rotate()` behavior if `s` sanitizes to empty. |
200
201
201
202
> **Time zone:** scheduling and filename timestamps use UTC by default, or local time if `LocalTime: true`.
203
+
> **Sanitized reason:** lowercase; `[a-z0-9_-]` only, trims edge, max 32.
0 commit comments