Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
721 stars 143 forks source link

getAllLogs return in WebAdminLogger #140

Open chiu0602 opened 7 years ago

chiu0602 commented 7 years ago

getAllLogs returns all and show on web admin. With large amount of log stored, memory will be used up on _logs variable in WebAdminLogger. It is suggested to truncate oldest log by setting a limit on logging lines.