Lines Matching defs:details
58 * @param mixed $details Any details that should be added to the log entry
63 public static function error($message, $details = null, $file = '', $line = 0)
67 $details,
77 * @param mixed $details Any details that should be added to the log entry
82 public static function debug($message, $details = null, $file = '', $line = 0)
86 $details,
96 * @param mixed $details Any details that should be added to the log entry
101 public static function deprecated($message, $details = null, $file = '', $line = 0)
105 $details,
115 * @param mixed $details Any details that should be added to the log entry
121 public function log($message, $details = null, $file = '', $line = 0)
131 'details' => $details,
178 // details are logged indented
179 if ($details) {
180 if (!is_string($details)) {
181 $details = json_encode($details, JSON_PRETTY_PRINT);
183 $details = explode("\n", $details);
184 $loglines = array_map(static fn($line) => ' ' . $line, $details);
185 } elseif ($details) {
186 $loglines = [$details];