Download the PHP package timewave/laravel-logger without Composer
On this page you can find all versions of the php package timewave/laravel-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-logger
Timewave\LaravelLogger
Custom logger package for Laravel applications with opinionated log levels.
Usage
Use the Timewave\LaravelLogger\Facades\Logger
facade to produce log entries.
All log levels accept the following signature:
error(string $message, ?array $context = null, ?\Throwable $exception = null)
Output is always pushed to stdout
.
Log levels
error
: Apocalypse! :Owarning
: The chaos is nearinfo
: All is well, but this message is importantverbose
: Extra info, likely good in a production environmentdebug
: A lot of detailed logs to debug your application [default]
Log formats
text
: Outputs a simple stringjson
: Outputs a string of a JSON object [default]
Configuration
LOG_LEVEL
: Sets the desired log levelLOG_FORMAT
: Sets the desired output formatLOG_FORMAT_TEXT_DELIMITER
: Sets the desired delimiter whenLOG_FORMAT
is set totext
(available options:space
ortab
[default])
Local development
You'll need a Laravel installation that can house this package while developing it locally. Follow these simple steps to get up and running:
- Create a fresh Laravel installation to house this package
- Create a
packages
folder in the root of the Laravel installation - Clone this repo into the packages folder
- Add
"Timewave\\LaravelLogger\\": "packages/package-laravel-logger/src/"
to thepsr-4
section inside yourcomposer.json
(for the Laravel installation) - Execute
composer dump-autoload
You should now be ready to consume the package as if you had installed it from packagist.
All versions of laravel-logger with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package timewave/laravel-logger contains the following files
Loading the files please wait ....