class log_wrapper_migrator_output_handler implements migrator_output_handler_interface

Properties

protected language $language

Language object.

protected migrator_output_handler_interface $migrator

A migrator output handler

protected resource $file_handle

Log file handle

protected filesystem_interface $filesystem

Methods

__construct(language $language, migrator_output_handler_interface $migrator, string $log_file, filesystem_interface $filesystem)

Constructor

file_open(string $file)

Open file for logging

write(string|array $message, int $verbosity)

Write output using the configured closure.

Details

at line 51
__construct(language $language, migrator_output_handler_interface $migrator, string $log_file, filesystem_interface $filesystem)

Constructor

Parameters

language $language

Language object

migrator_output_handler_interface $migrator

Migrator output handler

string $log_file

File to log to

filesystem_interface $filesystem

phpBB filesystem object

at line 64
protected file_open(string $file)

Open file for logging

Parameters

string $file

File to open

at line 79
write(string|array $message, int $verbosity)

Write output using the configured closure.

Parameters

string|array $message

The message to write or an array containing the language key and all of its parameters.

int $verbosity

The verbosity of the message.