Class to log to console
Find a file
2025-09-06 19:18:46 +02:00
src Updating library with few improvements - version 1.0.2 2025-09-06 19:18:46 +02:00
.gitignore Updating library with few improvements - version 1.0.2 2025-09-06 19:18:46 +02:00
composer.json Updating library with few improvements - version 1.0.2 2025-09-06 19:18:46 +02:00
README.md Updating library with few improvements - version 1.0.2 2025-09-06 19:18:46 +02:00

Logger

Yet another logger library

Install

composer require iwalkalone/logger

Usage

$logger = new \iwalkalone\Logger();
$logger->consoleLog($message, $color, $timestamp, $endline);

Parameters:

  • $message - message that will be displayed in console
  • $color - color of the message displayed (defaults to console's default color)
  • $timestamp - it defines if timestamp is displayed before the message (default true)
  • $endline - it defines if adding endline to the end of message (default true)