Log.php 2.8 KB

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