Logging¶
PhpBotFramework implements logging features.
It automatically creates a logging in the bot folder if it is using getUpdates
, otherwise it uses the syslog.
Chat logging¶
In addition to file log and syslog you can setup a chat where all error messages will be sent:
$bot->setChatLog("35818591");