/** * Adds an entry in the Watchdog log * * @param string $type * @param string $description(='') */ public static function alert($type, $description = '') { $entry = new PcWatchdog(); $entry->setType($type); $entry->setDescription($description); $entry->save(); }