forked from miguel456/luke-bot
Create log file if it doesn't exist yet
This commit is contained in:
parent
33eb4021fa
commit
6ca471386d
@ -14,6 +14,11 @@ $dotenv->required('CAT_API_KEY')->notEmpty();
|
||||
|
||||
define('PROJECT_ROOT', realpath(__DIR__ . '/../../'));
|
||||
|
||||
if (!file_exists(PROJECT_ROOT . 'Storage/Logs/bot.log'))
|
||||
{
|
||||
touch(PROJECT_ROOT . 'Storage/Logs/bot.log');
|
||||
}
|
||||
Analog::handler(File::init(PROJECT_ROOT . 'Storage/Logs/bot.log'));
|
||||
|
||||
|
||||
Analog::info("Finished intializing configuration and dependencies.");
|
||||
|
Loading…
Reference in New Issue
Block a user