On Laravel 5.8, you cannot use Log::useFiles() to create custom log files,after some digging around I found that I could add a channel to config/logging.php like this
1 | 'customlog' => [ |
and write to it like this
1 | Log::channel('customlog')->info('Hello world!!'); |
IF you want to create a log file using date format, modify in config/logging.php like this
1 | 'customlog' => [ |