文档中说:
var logger = Logger(
filter: null, // Use the default LogFilter (-> only log in debug mode)
printer: PrettyPrinter(), // Use the PrettyPrinter to format and print log
output: null, // Use the default LogOutput (-> send everything to console)
);
我不确定应该给 output 参数什么值才能使其记录到文件中。
类似于 file(../lib/file.txt)
这样的格式?