/** * Logs a message. * @param string $title title of the message * @param string $message message to be logged * @param string $type type of the message ({@link SBLog}::TYPE_ERROR, {@link SBLog}::TYPE_INFORMATION, {@link SBLog}::TYPE_WARNING). */ public static function log($title, $message, $type = SBLog::TYPE_INFORMATION) { $log = new SBLog(); $log->type = $type; $log->title = $title; $log->message = $message; $log->save(); }