mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
Merge 8358ca9e05
into e4fcafc0b6
This commit is contained in:
commit
386f1a00e2
1 changed files with 12 additions and 0 deletions
|
@ -134,8 +134,16 @@ A file. By default, log files are rotated ("rolled") to prevent disk space exhau
|
|||
|
||||
Log rolling is provided by [lumberjack <img src="/old/resources/images/external-link.svg" class="external-link">](https://github.com/natefinch/lumberjack)
|
||||
|
||||
<aside class="tip">
|
||||
|
||||
**A note about reloading log file options:** A server restart is required to apply configuration changes to a given output file.
|
||||
The changes will not be applied at server reload time, unless you add a new log filename.
|
||||
|
||||
</aside>
|
||||
|
||||
```caddy-d
|
||||
output file <filename> {
|
||||
mode <mode>
|
||||
roll_disabled
|
||||
roll_size <size>
|
||||
roll_uncompressed
|
||||
|
@ -147,6 +155,10 @@ output file <filename> {
|
|||
|
||||
- **<filename>** is the path to the log file.
|
||||
|
||||
- **mode** is the file mode octal value as specified with the unix `chmod` command. For example `0600` would set the mode to `rw-,---,---`, while `0640` would set the mode to `rw-,r--,---`.
|
||||
|
||||
Default: `0600`
|
||||
|
||||
- **roll_disabled** disables log rolling. This can lead to disk space depletion, so only use this if your log files are maintained some other way.
|
||||
|
||||
- **roll_size** is the size at which to roll the log file. The current implementation supports megabyte resolution; fractional values are rounded up to the next whole megabyte. For example, `1.1MiB` is rounded up to `2MiB`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue