Logging

The usage of the logging class is similar to the database class.

use support\Log;
Log::channel('plugin.admin.default')->info('test');

If you want to reuse the logging configuration of the main project, you can simply use:

use support\Log;
Log::info('Log content');
// Assuming the main project has a logging configuration named 'test'
Log::channel('test')->info('Log content');