- when log error, error output both into files(for production use) and console (for debug use)
- when log info, info output into console (for debug use only)
- file containing the log can be rotated, with the help of lumberjake
- lumberjake [https://github.com/natefinch/lumberjack]
- logrus [https://github.com/Sirupsen/logrus]
I do these adjustment to logrus, making it more friendly to project.