add default log name
This commit is contained in:
parent
1ea396330c
commit
b41f2ccdc8
@ -1,6 +1,6 @@
|
|||||||
using Memento
|
using Memento
|
||||||
|
|
||||||
function setup_logging(filename::String, handlername::Symbol)
|
function setup_logging(filename::String, handlername::Symbol=:log)
|
||||||
isdir(dirname(filename)) || mkdir(dirname(filename))
|
isdir(dirname(filename)) || mkdir(dirname(filename))
|
||||||
logger = Memento.config!("info", fmt="{date}| {msg}")
|
logger = Memento.config!("info", fmt="{date}| {msg}")
|
||||||
handler = DefaultHandler(filename, DefaultFormatter("{date}| {msg}"))
|
handler = DefaultHandler(filename, DefaultFormatter("{date}| {msg}"))
|
||||||
|
Loading…
Reference in New Issue
Block a user