american-technologies / laravel-console-logger
A logging bundle that allows you to write to Laravel logs & log to the console
v1.3.0
2024-04-30 15:32 UTC
Requires
- php: ^8.2
- laravel/framework: ^11.0
This package is auto-updated.
Last update: 2025-06-22 18:23:08 UTC
README
The AmTech Console Logger is an addon to Laravel's log system that auto logs to whatever log system is setup and also logs to the terminal window with color coding depending on log type.
Installation
Use the Composer to install into Laravel project.
composer require american-technologies/laravel-console-logger
Usage
use AmericanTechnologies\ConsoleLogger\ConsoleLogger; ... ConsoleLogger::log($message, $type, $data, $consoleOnly);
Options
Option | Type | Required | Description |
---|---|---|---|
message |
string |
yes | Message you want to log |
type |
string |
yes | Type of log (info, success, warning, error) |
data |
`array | object` | no |
consoleOnly |
bool |
no | Log to console only versus log file |