Log.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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()
  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 void write(string $level, \Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\Support\Jsonable|\Illuminate\Support\Stringable|array|string $message, array $context = [])
  27. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  28. * @method static void listen(\Closure $callback)
  29. * @method static \Psr\Log\LoggerInterface getLogger()
  30. * @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
  31. * @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $dispatcher)
  32. * @method static \Illuminate\Log\Logger|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  33. * @method static \Illuminate\Log\Logger|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
  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. }