Lines Matching defs:log
8 * Log messages to a daily log file
19 /** @var string what kind of log is this */
24 /** @var string[] a list of expected log messages, only used during unit testing */
30 * @param string $facility The type of log
46 * @param string $facility The type of log
58 * Convenience method to directly log to the error log
60 * @param string $message The log message
61 * @param mixed $details Any details that should be added to the log entry
64 * @return bool has a log been written?
68 return self::getInstance(self::LOG_ERROR)->log(
77 * Convenience method to directly log to the debug log
79 * @param string $message The log message
80 * @param mixed $details Any details that should be added to the log entry
83 * @return bool has a log been written?
87 return self::getInstance(self::LOG_DEBUG)->log(
96 * Convenience method to directly log to the deprecation log
98 * @param string $message The log message
99 * @param mixed $details Any details that should be added to the log entry
102 * @return bool has a log been written?
106 return self::getInstance(self::LOG_DEPRECATED)->log(
115 * Log a message to the facility log
117 * @param string $message The log message
118 * @param mixed $details Any details that should be added to the log entry
122 * @return bool has a log been written?
124 public function log($message, $details = null, $file = '', $line = 0)
148 // The event system is not yet available, to ensure the log isn't lost even on
153 // only log when any data available
172 * Tests may register log expectations
174 * @param string $log
177 public function expect($log)
179 $this->expected[] = $log;
186 * @return string[] the lines to log
218 * Construct the log file for the given day
232 return $conf['logdir'] . '/' . $this->facility . '/' . date('Y-m-d', $date) . '.log';
236 * Write the given lines to today's facility log
238 * @param string[] $lines the raw lines to append to the log
240 * @return bool true if the log was written
245 // our tests may expect certain log messages