added enabled/disable to styles
This commit is contained in:
28
app/Api/Plugins/LoggablePlugin.php
Normal file
28
app/Api/Plugins/LoggablePlugin.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Api\Plugins;
|
||||
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
trait LoggablePlugin
|
||||
{
|
||||
protected function logInfo(string $message, array $context = []): void
|
||||
{
|
||||
Log::channel('plugins')->info($message, $context);
|
||||
}
|
||||
|
||||
protected function logWarning(string $message, array $context = []): void
|
||||
{
|
||||
Log::channel('plugins')->warning($message, $context);
|
||||
}
|
||||
|
||||
protected function logError(string $message, array $context = []): void
|
||||
{
|
||||
Log::channel('plugins')->error($message, $context);
|
||||
}
|
||||
|
||||
protected function logDebug(string $message, array $context = []): void
|
||||
{
|
||||
Log::channel('plugins')->debug($message, $context);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user