* @since Class available since Release 2.0.0
*/
class EchoLogger extends BaseLogger
{
/**
* Handle log() by echoing the message.
*
* @param string $msg message to log
* @param string $style style (null | bold | italic)
* @return void
*/
public function log($msg, $style = '')
{
$msg = htmlspecialchars($msg);
if ($style == 'bold') {
echo '' . $msg . '';
} elseif ($style == 'italic') {
echo '' . $msg . '';
} else {
echo $msg;
}
}
/**
* Handle ln by echoing a
tag.
*
* @return void
*/
public function ln()
{
echo '
';
}
}