thinckx / laravel-podio-logger
Write your Laravel log messages to a Podio app of your choice
dev-master
2020-10-07 06:14 UTC
Requires
- php: >= 7.2.0
- illuminate/support: >=6.0
- monolog/monolog: >=2.0
- podio-community/podio-php: dev-master
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^9.1
This package is auto-updated.
Last update: 2025-03-07 16:18:47 UTC
README
Description
This package makes it easy to log your messages to a Podio app of your choice.
Requirements
- php >= 7.2
- Laravel >= 6
Installation instructions
- Install using composer:
composer require thinckx/laravel-podio-logger
- In
config/logging.php
, add thepodio
logging channel to thechannel
key:
'podio' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', ''),
'client_id' => env('PODIO_LOG_CLIENT_ID', ''),
'client_secret' => env('PODIO_LOG_CLIENT_SECRET', ''),
'app_id' => env('PODIO_LOG_APP_ID', ''),
'app_token' => env('PODIO_LOG_APP_TOKEN', ''),
'handler' => ThomasInckx\PodioLogger\PodioLoggerHandler::class,
'app_name' => env('APP_NAME', ''),
'keys' => [
'level' => 'your-podio-app-level-field-name-or-id',
'message' => 'your-podio-app-message-field-name-or-id',
'app_name' => 'your-podio-app-appname-field-name-or-id'
]
]
- Also in
config/logging.php
, add thepodio
channel to thechannels
array:
'stack' => [
'driver' => 'stack',
'channels' => ['podio', 'single'],
],
- Don't forget to complete the
.env
file with the relevant info (see 2)