<?php

/**
 * Class Logger
 */
class Logger extends cf_base_controller
{
    /**
     * Write errors to log file
     */
    public function log()
    {
        if ($error = $_POST['error']) {
            log_message('error', $error);
        }
    }
}
