Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
emergency example
$processor
=
new
DebugProcessor
(
)
;
$logger
=
new
Logger
(
__METHOD__,
[
$handler
]
,
[
$processor
]
)
;
$logger
->
debug
(
'test message'
)
;
$logger
->
info
(
'test message'
)
;
$logger
->
notice
(
'test message'
)
;
$logger
->
warning
(
'test message'
)
;
$logger
->
error
(
'test message'
)
;
$logger
->
critical
(
'test message'
)
;
$logger
->
alert
(
'test message'
)
;
$logger
->
emergency
(
'test message'
)
;
$this
->
assertSame
(
4,
$logger
->
countErrors
(
)
)
;
}
public
function
testGetLogsWithDebugProcessor2
(
)
{
$handler
=
new
TestHandler
(
)
;
$logger
=
new
Logger
(
'test',
[
$handler
]
)
;
$logger
->
pushProcessor
(
new
DebugProcessor
(
)
)
;
$logger
->
info
(
'test'
)
;