*writing command line logs to file with $this->log_to_file = true now logs as the logs to file as the log message are displayed on the command line instead of waiting till the end which improves memory usage and keep better historical track of what logs were displayed at the command line
*added fgcolor, bgcolor, bold, underline support
e.g. $this->log("968 records", "FOUND", 'green');
$this->log("968 records", "FOUND", ['fgcolor' => 'green', 'bgcolor' => 'yellow', 'bold' => true]);