| 487 | .expect("Non blocking couldn't be set"); |
| 488 | |
| 489 | let writer = RollingFileAppender::builder() |
| 490 | .rotation(Rotation::HOURLY) // rotate log files once every hour |
| 491 | .filename_prefix(widget_name) // log file names will be prefixed with `myapp.` |
| 492 | .filename_suffix("log") // log file names will be suffixed with `.log` |
| 493 | .build(&logging_dir) // try to build an appender that stores log files in `/var/log` |
| 494 | .expect("initializing rolling file appender failed"); |
| 495 |
nothing calls this directly
no outgoing calls
no test coverage detected