Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-06-03 15:07:16 +00:00
parent ac56c13765
commit 1c24066b17
2 changed files with 25 additions and 25 deletions

View File

@@ -5,19 +5,19 @@ return [
/* /*
* The author of the log messages. You can set both to null to keep the Webhook author set in Discord * The author of the log messages. You can set both to null to keep the Webhook author set in Discord
*/ */
'from' => [ 'from' => [
'name' => env('APP_NAME', 'Heimerdinger Logger'), 'name' => env('APP_NAME', 'Heimerdinger Logger'),
'avatar_url' => null, 'avatar_url' => null,
], ],
/** /**
* The converter to use to turn a log record into a discord message * The converter to use to turn a log record into a discord message.
* *
* Bundled converters: * Bundled converters:
* - \MarvinLabs\DiscordLogger\Converters\SimpleRecordConverter::class * - \MarvinLabs\DiscordLogger\Converters\SimpleRecordConverter::class
* - \MarvinLabs\DiscordLogger\Converters\RichRecordConverter::class * - \MarvinLabs\DiscordLogger\Converters\RichRecordConverter::class
*/ */
'converter' => \MarvinLabs\DiscordLogger\Converters\RichRecordConverter::class, 'converter' => \MarvinLabs\DiscordLogger\Converters\RichRecordConverter::class,
/** /**
* If enabled, stacktraces will be attached as files. If not, stacktraces will be directly printed out in the * If enabled, stacktraces will be attached as files. If not, stacktraces will be directly printed out in the
@@ -34,28 +34,28 @@ return [
/* /*
* A set of colors to associate to the different log levels when using the `RichRecordConverter` * A set of colors to associate to the different log levels when using the `RichRecordConverter`
*/ */
'colors' => [ 'colors' => [
'DEBUG' => 0x607d8b, 'DEBUG' => 0x607D8B,
'INFO' => 0x4caf50, 'INFO' => 0x4CAF50,
'NOTICE' => 0x2196f3, 'NOTICE' => 0x2196F3,
'WARNING' => 0xff9800, 'WARNING' => 0xFF9800,
'ERROR' => 0xf44336, 'ERROR' => 0xF44336,
'CRITICAL' => 0xe91e63, 'CRITICAL' => 0xE91E63,
'ALERT' => 0x673ab7, 'ALERT' => 0x673AB7,
'EMERGENCY' => 0x9c27b0, 'EMERGENCY' => 0x9C27B0,
], ],
/* /*
* A set of emojis to associate to the different log levels. Set to null to disable an emoji for a given level * A set of emojis to associate to the different log levels. Set to null to disable an emoji for a given level
*/ */
'emojis' => [ 'emojis' => [
'DEBUG' => ':beetle:', 'DEBUG' => ':beetle:',
'INFO' => ':bulb:', 'INFO' => ':bulb:',
'NOTICE' => ':wink:', 'NOTICE' => ':wink:',
'WARNING' => ':flushed:', 'WARNING' => ':flushed:',
'ERROR' => ':poop:', 'ERROR' => ':poop:',
'CRITICAL' => ':imp:', 'CRITICAL' => ':imp:',
'ALERT' => ':japanese_ogre:', 'ALERT' => ':japanese_ogre:',
'EMERGENCY' => ':skull:', 'EMERGENCY' => ':skull:',
], ],
]; ];

View File

@@ -84,9 +84,9 @@ return [
'discord' => [ 'discord' => [
'driver' => 'custom', 'driver' => 'custom',
'via' => \MarvinLabs\DiscordLogger\Logger::class, 'via' => \MarvinLabs\DiscordLogger\Logger::class,
'level' => 'debug', 'level' => 'debug',
'url' => env('LOG_DISCORD_WEBHOOK_URL'), 'url' => env('LOG_DISCORD_WEBHOOK_URL'),
'ignore_exceptions' => env('LOG_DISCORD_IGNORE_EXCEPTIONS', false), 'ignore_exceptions' => env('LOG_DISCORD_IGNORE_EXCEPTIONS', false),
], ],
@@ -97,7 +97,7 @@ return [
'handler_with' => [ 'handler_with' => [
'host' => env('PAPERTRAIL_URL'), 'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'), 'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'), 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
], ],
'processors' => [PsrLogMessageProcessor::class], 'processors' => [PsrLogMessageProcessor::class],
], ],