Simple and light PHP console logger

1.0.0 2021-04-07 14:27 UTC

This package is auto-updated.

Last update: 2022-08-07 17:35:51 UTC


This library permits you to easily log messages in console for PHP scripts and apps.

Codacy Badge


  • PHP >= 7.3


You can install the package with git clone and composer install in the directory.

Or you can directly use composer :

composer require scoobydam/console-logger


This library is an easy-to-use and light one.

use ScoobyConsoleLogger\ConsoleLogger;

$consoleLogger = new ConsoleLogger();

$consoleLogger->alert('This is an alert !')
    ->critical('This is critical :/')
    ->emergency('This is an emergency !')
    ->echo('echo some text')
    ->error('This is an error :(')
    ->info('There can be some informations')
    ->notice('Something you need to notice')
    ->success('This is a success !')
    ->warning('This is a warning')
    ->debug('Some debug informations you need to print')
    ->title('This is for some title')


You can chain the functions like in the example above or you can just call your logger in different line.

Full documentation

To know all what you can do, you can find full documentation here.


You can send PRs if you want to :)

Just, please, follow these conventions.