Lines Matching defs:log
8 * Log messages to a daily log file
19 /** @var string what kind of log is this */
27 * @param string $facility The type of log
43 * @param string $facility The type of log
55 * Convenience method to directly log to the error log
57 * @param string $message The log message
58 * @param mixed $details Any details that should be added to the log entry
61 * @return bool has a log been written?
65 return self::getInstance(self::LOG_ERROR)->log(
74 * Convenience method to directly log to the debug log
76 * @param string $message The log message
77 * @param mixed $details Any details that should be added to the log entry
80 * @return bool has a log been written?
84 return self::getInstance(self::LOG_DEBUG)->log(
93 * Convenience method to directly log to the deprecation log
95 * @param string $message The log message
96 * @param mixed $details Any details that should be added to the log entry
99 * @return bool has a log been written?
103 return self::getInstance(self::LOG_DEPRECATED)->log(
112 * Log a message to the facility log
114 * @param string $message The log message
115 * @param mixed $details Any details that should be added to the log entry
119 * @return bool has a log been written?
121 public function log($message, $details = null, $file = '', $line = 0)
145 // The event system is not yet available, to ensure the log isn't lost even on
150 // only log when any data available
172 * @return string[] the lines to log
204 * Construct the log file for the given day
218 return $conf['logdir'] . '/' . $this->facility . '/' . date('Y-m-d', $date) . '.log';
222 * Write the given lines to today's facility log
224 * @param string[] $lines the raw lines to append to the log
226 * @return bool true if the log was written