Logs

The usage of the log class is similar to that of the database.

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

If you want to reuse the log configuration of the main project, use it directly.

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