2081. Class

2081.1. Zend\Log\Writer\MongoDB

MongoDB log writer.

2081.1.1. Methods

2081.1.1.1. __construct

__construct()

Constructor

Parameters:
  • Mongo|MongoClient|array|Traversable
  • string|MongoDB
  • string
  • array
Throws ExceptionInvalidArgumentException:
 

2081.1.1.2. setFormatter

setFormatter()

This writer does not support formatting.

Parameters:string|ZendLogFormatterFormatterInterface
Return type:WriterInterface

2081.1.1.3. doWrite

doWrite()

Write a message to the log.

Parameters:array – Event data
Return type:void
Throws :ZendLogExceptionRuntimeException

Project Versions

Table Of Contents

Previous topic

2080. Class

Next topic

2082. Class

This Page