Documentation

LocationLogger
in package
implements Logger

Tags
author

Janos Szurovecz szjani@szjani.hu

Interfaces, Classes and Traits

Logger

Table of Contents

DEFAULT_BACKTRACE_LEVEL  = 2
DEFAULT_LOCATION_PREFIX  = ' - '
DEFAULT_LOCATION_SUFFIX  = ' - '
$locationPrefix  : mixed
$locationSuffix  : mixed
getLocationPrefix()  : mixed
getLocationSuffix()  : mixed
setLocationPrefix()  : mixed
setLocationSuffix()  : mixed
getLocation()  : mixed
Get caller class name.
getShortLocation()  : mixed

Constants

DEFAULT_BACKTRACE_LEVEL

public mixed DEFAULT_BACKTRACE_LEVEL = 2

DEFAULT_LOCATION_PREFIX

public mixed DEFAULT_LOCATION_PREFIX = ' - '

DEFAULT_LOCATION_SUFFIX

public mixed DEFAULT_LOCATION_SUFFIX = ' - '

Properties

$locationPrefix

private mixed $locationPrefix = self::DEFAULT_LOCATION_PREFIX

$locationSuffix

private mixed $locationSuffix = self::DEFAULT_LOCATION_SUFFIX

Methods

getLocationPrefix()

public getLocationPrefix() : mixed
Return values
mixed

getLocationSuffix()

public getLocationSuffix() : mixed
Return values
mixed

setLocationPrefix()

public setLocationPrefix(mixed $prefix) : mixed
Parameters
$prefix : mixed
Return values
mixed

setLocationSuffix()

public setLocationSuffix(mixed $suffix) : mixed
Parameters
$suffix : mixed
Return values
mixed

getLocation()

Get caller class name.

protected getLocation([int $backtraceLevel = self::DEFAULT_BACKTRACE_LEVEL ]) : mixed
Parameters
$backtraceLevel : int = self::DEFAULT_BACKTRACE_LEVEL
Return values
mixed

getShortLocation()

protected getShortLocation([mixed $backtraceLevel = self::DEFAULT_BACKTRACE_LEVEL ]) : mixed
Parameters
$backtraceLevel : mixed = self::DEFAULT_BACKTRACE_LEVEL
Return values
mixed

Search results