Download the PHP package wendrpatrck/cpblogs without Composer
On this page you can find all versions of the php package wendrpatrck/cpblogs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wendrpatrck/cpblogs
More information about wendrpatrck/cpblogs
Files in wendrpatrck/cpblogs
Download wendrpatrck/cpblogs
More information about wendrpatrck/cpblogs
Files in wendrpatrck/cpblogs
Vendor wendrpatrck
Package cpblogs
Short Description This package helps you to auto-report exceptions in code
License MIT
Package cpblogs
Short Description This package helps you to auto-report exceptions in code
License MIT
Please rate this library. Is it a good library?
Informations about the package cpblogs
Cpblogs Laravel š
Esse pacote reporta logs de erros para um servidor remoto
1. Para usar esse pacote, faƧa a instalaĆ§Ć£o via composer:
composer require wendrpatrck/cpblogs
2. Publique a configuraĆ§Ć£o
php artisan vendor:publish --provider="wendrpatrck\cpblogs\LogServiceProvider"
Um arquivo de configuraĆ§Ć£o serĆ” publicado em config\cpblogs.php
Consulte o arquivo para mais detalhes da configuraĆ§Ć£o local
3. Adicione a chave de api gerada para a aplicaĆ§Ć£o no arquivo .env
LOGGER_APIKEY=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
4. Defina um ambiente de desenvolvimento
LOGGER_ENVIRONMENT="dev"
LOGGER_MACHINE_LABEL="server-01"
- Pode se usar qualquer nome para ambiente, mas ao definir como 'local', nenhum log serĆ” reportado
- Essa Ć© uma infomaĆ§Ć£o de complemento do log
5. Pronto!
IntegraĆ§Ć£o
- Exceptions nĆ£o tratadas serĆ£o enviadas para o servidor indicado automaticamente quando acontecerem.
Para exceptions tratadas, use o mƩtodo catchError
:
-
Ć possĆvel enviar dados junto com a requisiĆ§Ć£o adicionando um objeto dentro do mĆ©todo
catchError
: - O arquivo de configuraĆ§Ć£o gerado
config\cpblogs.php
contƩm
All versions of cpblogs with dependencies
PHP Build Version
Package Version
No informations.
The package wendrpatrck/cpblogs contains the following files
Loading the files please wait ....