Files
snakebot/log4rs.toml
Rembane 061da11d43 Refactored the Rust Snakebot codebase. (#7)
* Normal logging now logs to stdout;
  * Renamed Inbound::GameLinkEvent to Inbound::Gamelink;
  * Renamed the struct GameResultSnake to GameResult;
  * Added Inbound::GameResult;
* Rewrote the message handling to become more succinct;
* Turned the default_gamesettings function into a Default impl;
* Made the snake smaller and prettier;
* Replaced some direction checking code with less code;
* Added logging messages to all callbacks;
* Added as_movement_delta to the Direction impl;
* Added nice error messages to the message parsing;
* Moved some code in maputil to increase the DRY-factor.
2017-04-21 15:49:42 +02:00

28 lines
434 B
TOML

[appenders.console]
kind = "console"
[appenders.console.encoder]
pattern = "{d(%+)(local)} [{t}] {h({l})} {M}:{m}{n}"
[appenders.client]
kind = "file"
path = "log/client.log"
[appenders.snake]
kind = "file"
path = "log/snake.log"
[root]
level = "info"
appenders = [ "console" ]
[loggers.client]
level = "debug"
appenders = [ "client" ]
additive = false
[loggers.snake]
level = "debug"
appenders = [ "console" ]
additive = false