Last updated: August 12th, 2023

Provides a Stoic\Log\AppenderBase appender to output log messages to STDOUT in the console.


use Stoic\Log\Logger;
use Stoic\Utilities\ConsoleHelper;
use Stoic\Utilities\LogConsoleAppender;

$log = new Logger();
$ch  = new ConsoleHelper();
$log->addAppender(new LogConsoleAppender($ch));

$log->info("Testing log info output");


		Logger will now output to STDOUT (date format is displayed in UTC time):

Y-m-d G:i:s.u INFO     Testing log info output

Further Reading

Next Up

Continue to read about the LogFileAppender class, or visit the Table of Contents.