LogChannel
in package
Marks a property for automatic logger injection by LoggerServiceProvider
@\Attribute(Attribute::TARGET_PROPERTY)
Tags
Attributes
- #[Attribute]
- \Attribute::TARGET_PROPERTY
Table of Contents
Properties
- $channel : Channel
- $defaultContext : array<string|int, mixed>
- $includeClass : bool
- $includeMethod : bool
Methods
- __construct() : mixed
Properties
$channel read-only
public
Channel
$channel
$defaultContext read-only
public
array<string|int, mixed>
$defaultContext
= []
$includeClass read-only
public
bool
$includeClass
= true
$includeMethod read-only
public
bool
$includeMethod
= false
Methods
__construct()
public
__construct(Channel $channel[, bool $includeClass = true ][, bool $includeMethod = false ][, array<string|int, mixed> $defaultContext = [] ]) : mixed
Parameters
- $channel : Channel
- $includeClass : bool = true
- $includeMethod : bool = false
- $defaultContext : array<string|int, mixed> = []