AbstractLoggerCreator

namespace

bhenk\logger\build

predicates

Abstract

implements

LoggerCreatorInterface

known subclasses

ConsoleLoggerCreator | DefaultLoggerCreator | ErrorLoggerCreator | RequestLoggerCreator


Constants

AbstractLoggerCreator::LOG_DIR

predicates

public

Inherited from

LoggerCreatorInterface::LOG_DIR

Name of an ancestor child directory expected to be dedicated for logfiles

string(4) "logs"

Methods

AbstractLoggerCreator::makeAbsolute

predicates

public

Tries to make the given filename absolute

An absolute param $filename will be returned as such.

This method will than try to locate an ancestor directory with a child with the name specified by LoggerCreatorInterface::LOG_DIR (logs). The returned absolute filename will than point to a child of this ancestor-child directory.

A param $filename is invalid if it is the empty string (“”) or the slash forward (/).

public function makeAbsolute(
      Parameter #0 [ <required> string $filename ]
 ): string
param string $filename - absolute or relative to ancestor directory ‘logs’
return string - absolute filename

AbstractLoggerCreator::create

predicates

public | abstract

Creates a logger that implements LoggerInterface

public abstract function create(
      Parameter #0 [ <optional> array $paras = [] ]
 ): LoggerInterface
param array $paras - array of name-value pairs needed for building the logger.

Sat, 29 Apr 2023 12:38:18 +0000