'General', ) ); } /** * Return the action labels. * * @return array */ public function get_action_labels(): array { return array( LogLevel::ALERT => ucfirst( LogLevel::ALERT ), LogLevel::CRITICAL => ucfirst( LogLevel::CRITICAL ), LogLevel::DEBUG => ucfirst( LogLevel::DEBUG ), LogLevel::EMERGENCY => ucfirst( LogLevel::EMERGENCY ), LogLevel::ERROR => ucfirst( LogLevel::ERROR ), LogLevel::INFO => ucfirst( LogLevel::INFO ), LogLevel::NOTICE => ucfirst( LogLevel::NOTICE ), LogLevel::WARNING => ucfirst( LogLevel::WARNING ), ); } /** * Add action links to Stream drop row in admin list screen * * This method is optional. * * @param array $links Previous links registered. * @param Record $record Stream record. * * @return array Action links. */ public function action_links( $links, $record ) { return $links; } /** * Callback write function. * * @param string $level Level of record. * @param string $message General message. * @param array $data Additional data. * @param string $module The module that caused the record. * * @return void */ public function callback_itron_polly_tts_stream_logger_write( $level, $message, $data, $module ) { // Getting $message sprintf-ready error message string. $message = str_replace( '%', '%%', $message ); $res = $this->log( $message, $data, 0, $module, $level ); } }