write log to file for tail
This commit is contained in:
parent
3c8aace660
commit
8a654bcee4
@ -7,8 +7,9 @@ ExecStart=/usr/local/mnml/bin/mnml
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartPreventExitStatus=255
|
||||
|
||||
#StandardOutput=file:/var/log/mnml/mnml.log
|
||||
StandardOutput=null
|
||||
StandardError=null
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@ -72,6 +72,7 @@ pub fn setup_logger() -> Result<(), fern::InitError> {
|
||||
|
||||
let syslog = fern::Dispatch::new()
|
||||
.level(log::LevelFilter::Info)
|
||||
.chain(fern::log_file("/var/log/mnml/mnml.log")?)
|
||||
.chain(syslog::unix(formatter).unwrap());
|
||||
|
||||
let colors_line = ColoredLevelConfig::new()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user