class MonologFactory implements SearchLogFactory (View source)

Provides logging based on monolog

Methods

public
LoggerInterface
getOutputLogger(string $name, bool $verbose)

Get an output logger with the given verbosity

public
LoggerInterface
getQueuedJobLogger(QueuedJob $job)

Make a logger for a queuedjob

protected
HandlerInterface
getStreamHandler(FormatterInterface $formatter, string $stream, int $level = Logger::DEBUG, bool $bubble = true)

Generate a handler for the given stream

protected
FormatterInterface
getFormatter()

Gets a formatter for standard output

protected
Logger
getLoggerFor(string $name)

Get a logger for a named class

protected
HandlerInterface
getJobHandler(QueuedJob $job)

Generate handler for a job object

Details

LoggerInterface getOutputLogger(string $name, bool $verbose)

Get an output logger with the given verbosity

Parameters

string $name
bool $verbose

Return Value

LoggerInterface

LoggerInterface getQueuedJobLogger(QueuedJob $job)

Make a logger for a queuedjob

Parameters

QueuedJob $job

Return Value

LoggerInterface

protected HandlerInterface getStreamHandler(FormatterInterface $formatter, string $stream, int $level = Logger::DEBUG, bool $bubble = true)

Generate a handler for the given stream

Parameters

FormatterInterface $formatter
string $stream

Name of preferred stream

int $level
bool $bubble

Return Value

HandlerInterface

protected FormatterInterface getFormatter()

Gets a formatter for standard output

Return Value

FormatterInterface

protected Logger getLoggerFor(string $name)

Get a logger for a named class

Parameters

string $name

Return Value

Logger

protected HandlerInterface getJobHandler(QueuedJob $job)

Generate handler for a job object

Parameters

QueuedJob $job

Return Value

HandlerInterface