-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.php
More file actions
58 lines (55 loc) · 2.5 KB
/
Copy pathLog.php
File metadata and controls
58 lines (55 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* Log Facade class file.
*
* @package Mantle
*/
namespace Mantle\Facade;
use DateTimeImmutable;
use Mantle\Support\Stringable;
/**
* Log Facade
*
* @method static \Mantle\Log\Logger set_dispatcher(\Mantle\Contracts\Events\Dispatcher $dispatcher = null)
* @method static bool addRecord(int $level, string $message, mixed[] $context = [], DateTimeImmutable $datetime = null)
* @method static string getName()
* @method static \Mantle\Log\Logger withName(string $name)
* @method static \Mantle\Log\Logger pushHandler(\Monolog\Handler\HandlerInterface $handler)
* @method static \Monolog\Handler\HandlerInterface popHandler()
* @method static \Mantle\Log\Logger setHandlers(\Monolog\Handler\HandlerInterface[] $handlers)
* @method static \Monolog\Handler\HandlerInterface[] getHandlers()
* @method static \Mantle\Log\Logger pushProcessor(callable $callback)
* @method static callable popProcessor()
* @method static callable[] getProcessors()
* @method static \Mantle\Log\Logger useMicrosecondTimestamps(bool $micro)
* @method static \Mantle\Log\Logger useLoggingLoopDetection(bool $detectCycles)
* @method static void close()
* @method static void reset()
* @method static array getLevels()
* @method static string getLevelName(int $level)
* @method static int toMonologLevel(string|int $level)
* @method static bool isHandling(int $level)
* @method static \Mantle\Log\Logger setExceptionHandler(callable|null $callback)
* @method static callable|null getExceptionHandler()
* @method static void log(mixed $level, string|Stringable $message, mixed[] $context = [])
* @method static void debug(string|Stringable $message, mixed[] $context = [])
* @method static void info(string|Stringable $message, mixed[] $context = [])
* @method static void notice(string|Stringable $message, mixed[] $context = [])
* @method static void warning(string|Stringable $message, mixed[] $context = [])
* @method static void error(string|Stringable $message, mixed[] $context = [])
* @method static void critical(string|Stringable $message, mixed[] $context = [])
* @method static void alert(string|Stringable $message, mixed[] $context = [])
* @method static void emergency(string|Stringable $message, mixed[] $context = [])
* @method static \Mantle\Log\Logger setTimezone(\DateTimeZone $tz)
* @method static \DateTimeZone getTimezone()
*
* @see \Mantle\Log\Logger
*/
class Log extends Facade {
/**
* Get the registered name of the component.
*/
protected static function get_facade_accessor(): string {
return 'log';
}
}