public function jsonGeneric(
        $type,
        $level,
        $class,
        $file,
        $line,
        $message,
        $trace,
        $offset)
    {
        return json_encode(array(
            'error'     => true,
            'message'    => 'A server Error occurred'),
            JSON_PRETTY_PRINT);
    }