Class FingersCrossed

Summary

Fully Qualified Name: Zend\Log\Writer\FingersCrossed
Extends: AbstractWriter

Description

Buffers all events until the strategy determines to flush them.

Methods

Name Description Defined By
__construct() Constructor FingersCrossed
addFilter() Add a filter specific to this writer. AbstractWriter
filterPlugin() Get filter instance AbstractWriter
formatterPlugin() Get formatter instance AbstractWriter
getFilterPluginManager() Get filter plugin manager AbstractWriter
getFormatterPluginManager() Get formatter plugin manager AbstractWriter
getWriterPluginManager() Get writer plugin manager FingersCrossed
reset() Resets the state of the handler. FingersCrossed
setConvertWriteErrorsToExceptions() Set convert write errors to exception flag AbstractWriter
setFilterPluginManager() Set filter plugin manager AbstractWriter
setFormatter() Stub in accordance to parent method signature. FingersCrossed
setFormatterPluginManager() Set formatter plugin manager AbstractWriter
setWriter() Set a new writer FingersCrossed
setWriterPluginManager() Set writer plugin manager FingersCrossed
shutdown() Record shutdown FingersCrossed
write() Log a message to this writer. FingersCrossed
writerPlugin() Get writer instance FingersCrossed

Method Details

__construct()

Constructor

Parameter Name Type Description
$writer \WriterInterface|string|array|\Traversable Wrapped
$filterOrPriority \FilterInterface|int Filter
$bufferSize int Maximum

Returns:

addFilter()

Add a filter specific to this writer.

Parameter Name Type Description
$filter int|string|\Filter\FilterInterface
$options array|null

Returns: \AbstractWriter

filterPlugin()

Get filter instance

Parameter Name Type Description
$name string
$options array|null

Returns: \Filter\FilterInterface

formatterPlugin()

Get formatter instance

Parameter Name Type Description
$name string
$options array|null

Returns: \Formatter\FormatterInterface

getFilterPluginManager()

Get filter plugin manager

Returns: \LogFilterPluginManager

getFormatterPluginManager()

Get formatter plugin manager

Returns: \LogFormatterPluginManager

getWriterPluginManager()

Get writer plugin manager

Returns: \WriterPluginManager

reset()

Resets the state of the handler.

Stops forwarding records to the wrapped writer

Returns:

setConvertWriteErrorsToExceptions()

Set convert write errors to exception flag

Parameter Name Type Description
$convertErrors bool

Returns:

setFilterPluginManager()

Set filter plugin manager

Parameter Name Type Description
$plugins string|\LogFilterPluginManager

Returns: self

setFormatter()

Stub in accordance to parent method signature.

Fomatters must be set on the wrapped writer.

Parameter Name Type Description
$formatter string|\FormatterInterface
$options array|null (unused)

Returns: \WriterInterface

setFormatterPluginManager()

Set formatter plugin manager

Parameter Name Type Description
$plugins string|\LogFormatterPluginManager

Returns: self

setWriter()

Set a new writer

Parameter Name Type Description
$writer string|\WriterInterface
$options array|null

Returns: self

setWriterPluginManager()

Set writer plugin manager

Parameter Name Type Description
$plugins string|\WriterPluginManager

Returns: \FingersCrossed

shutdown()

Record shutdown

Returns: void

write()

Log a message to this writer.

Parameter Name Type Description
$event array log

Returns: void

writerPlugin()

Get writer instance

Parameter Name Type Description
$name string
$options array|null

Returns: \WriterInterface

Top