Currently, we use a simple file to store all log messages:
|
let file = storage |
|
.create(generate_filename(db_path, FileType::InfoLog, 0).as_str()) |
|
.unwrap(); |
|
slog_async::Async::new(FileBasedDrain::new(file)) |
|
.build() |
This could be a bad design as the log messages growing. Adding a file rotation by implementing a slog Drain might be a good solution.