Nexus API Reference

MonologFormatterAdapter
in package
implements Formatter

Read onlyYes
FinalYes
Tags
psalm-api

Drops any Monolog FormatterInterface into the nexus-logger pipeline. Useful when you want one of Monolog's formatters (JsonFormatter, LineFormatter, GelfMessageFormatter, LogstashFormatter, ElasticsearchFormatter, etc.) but still want to ship the resulting string through the nexus ConsoleHandler / FileHandler / ThreadQueueHandler.

Soft-depends on monolog/monolog ^3.0; install separately when used.

Table of Contents

Interfaces

Formatter

Methods

__construct()  : mixed
format()  : string

Methods

__construct()

public __construct(FormatterInterface $delegate) : mixed
Parameters
$delegate : FormatterInterface

        
On this page

Search results