Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7403723
AsMonologProcessor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AsMonologProcessor.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Monolog\Attribute
;
/**
* A reusable attribute to help configure a class or a method as a processor.
*
* Using it offers no guarantee: it needs to be leveraged by a Monolog third-party consumer.
*
* Using it with the Monolog library only has no effect at all: processors should still be turned into a callable if
* needed and manually pushed to the loggers and to the processable handlers.
*/
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class
AsMonologProcessor
{
/** @var string|null */
public
$channel
=
null
;
/** @var string|null */
public
$handler
=
null
;
/** @var string|null */
public
$method
=
null
;
/**
* @param string|null $channel The logging channel the processor should be pushed to.
* @param string|null $handler The handler the processor should be pushed to.
* @param string|null $method The method that processes the records (if the attribute is used at the class level).
*/
public
function
__construct
(
?
string
$channel
=
null
,
?
string
$handler
=
null
,
?
string
$method
=
null
)
{
$this
->
channel
=
$channel
;
$this
->
handler
=
$handler
;
$this
->
method
=
$method
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Nov 21, 18:46 (22 h, 52 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b1/4b/4fe980297e6b82fc3270fcd6ba61
Default Alt Text
AsMonologProcessor.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment