Library provides the ability to easily log the system
Require webplace/logger
using composer.
<?php
use WebPlace\Logger;
Logger::setLogDirectory('/to_log_directory/');
Logger::writeLog('message to write log');
Logger::writeWarningLog('message to write log');
Logger::writeErrorLog('message to write log');
Logger::writeExceptionLog('message to write log', new Throwable('error'));