class SimpleFileConfiguration extends SimpleConfiguration (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected int $coreLevel

The logging level to care about for all core logs.

from  SimpleConfiguration
protected string $filename

The file where the log is to be stored.

Methods

setApplication(Application $app)

Setter method for the application

__construct(string $filename, int $coreLevel = Logger::DEBUG)

Initialize the instance.

int
getCoreLevel()

No description

LoggerInterface
createLogger(string $channel)

Create a new logger instance for a specific logigng channel.

HandlerInterface
createHandler(int $level)

Create a handler for a specific log level.

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(string $filename, int $coreLevel = Logger::DEBUG)

Initialize the instance.

Parameters

string $filename

the file to log to

int $coreLevel

the logging level to care about for all core logs (one of the Monolog\Logger constants)

See also

Logger

int getCoreLevel()

No description

Return Value

int

LoggerInterface createLogger(string $channel)

Create a new logger instance for a specific logigng channel.

Parameters

string $channel

The name of logging channel

Return Value

LoggerInterface

See also

ConfigurationInterface::createLogger

HandlerInterface createHandler(int $level)

Create a handler for a specific log level.

Parameters

int $level

One of the Monolog\Logger constants

Return Value

HandlerInterface

See also

SimpleConfiguration::createHandler