| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Illuminate\Support\Facades;
|
|
|
4 |
|
|
|
5 |
/**
|
|
|
6 |
* @method static \Psr\Log\LoggerInterface build(array $config)
|
|
|
7 |
* @method static \Psr\Log\LoggerInterface stack(array $channels, string|null $channel = null)
|
|
|
8 |
* @method static \Psr\Log\LoggerInterface channel(string|null $channel = null)
|
|
|
9 |
* @method static \Psr\Log\LoggerInterface driver(string|null $driver = null)
|
|
|
10 |
* @method static \Illuminate\Log\LogManager shareContext(array $context)
|
|
|
11 |
* @method static array sharedContext()
|
|
|
12 |
* @method static \Illuminate\Log\LogManager flushSharedContext()
|
|
|
13 |
* @method static string|null getDefaultDriver()
|
|
|
14 |
* @method static void setDefaultDriver(string $name)
|
|
|
15 |
* @method static \Illuminate\Log\LogManager extend(string $driver, \Closure $callback)
|
| 399 |
lars |
16 |
* @method static void forgetChannel(string|null $driver = null)
|
| 148 |
lars |
17 |
* @method static array getChannels()
|
|
|
18 |
* @method static void emergency(string $message, array $context = [])
|
|
|
19 |
* @method static void alert(string $message, array $context = [])
|
|
|
20 |
* @method static void critical(string $message, array $context = [])
|
|
|
21 |
* @method static void error(string $message, array $context = [])
|
|
|
22 |
* @method static void warning(string $message, array $context = [])
|
|
|
23 |
* @method static void notice(string $message, array $context = [])
|
|
|
24 |
* @method static void info(string $message, array $context = [])
|
|
|
25 |
* @method static void debug(string $message, array $context = [])
|
|
|
26 |
* @method static void log(mixed $level, string $message, array $context = [])
|
|
|
27 |
* @method static void write(string $level, \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message, array $context = [])
|
|
|
28 |
* @method static \Illuminate\Log\Logger withContext(array $context = [])
|
|
|
29 |
* @method static \Illuminate\Log\Logger withoutContext()
|
|
|
30 |
* @method static void listen(\Closure $callback)
|
|
|
31 |
* @method static \Psr\Log\LoggerInterface getLogger()
|
|
|
32 |
* @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
|
|
|
33 |
* @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $dispatcher)
|
|
|
34 |
*
|
|
|
35 |
* @see \Illuminate\Log\LogManager
|
|
|
36 |
*/
|
|
|
37 |
class Log extends Facade
|
|
|
38 |
{
|
|
|
39 |
/**
|
|
|
40 |
* Get the registered name of the component.
|
|
|
41 |
*
|
|
|
42 |
* @return string
|
|
|
43 |
*/
|
|
|
44 |
protected static function getFacadeAccessor()
|
|
|
45 |
{
|
|
|
46 |
return 'log';
|
|
|
47 |
}
|
|
|
48 |
}
|