Constants

LEVEL_FATAL

LEVEL_FATAL = 10

LEVEL_ERROR

LEVEL_ERROR = 20

LEVEL_WARN

LEVEL_WARN = 30

LEVEL_INFO

LEVEL_INFO = 40

LEVEL_DEBUG

LEVEL_DEBUG = 50

Properties

$request

$request : \ManaPHP\Http\RequestInterface

Type

\ManaPHP\Http\RequestInterface

$_context

$_context : \ManaPHP\Logging\LoggerContext

Type

\ManaPHP\Logging\LoggerContext

$alias

$alias : \ManaPHP\AliasInterface

Type

\ManaPHP\AliasInterface

$eventsManager

$eventsManager : \ManaPHP\Event\ManagerInterface

Type

\ManaPHP\Event\ManagerInterface

$logger

$logger : \ManaPHP\Logging\LoggerInterface

Type

\ManaPHP\Logging\LoggerInterface

$configure

$configure : \ManaPHP\Configuration\Configure

Type

\ManaPHP\Configuration\Configure

$settings

$settings : \ManaPHP\Configuration\SettingsInterface

Type

\ManaPHP\Configuration\SettingsInterface

$crypt

$crypt : \ManaPHP\Security\CryptInterface

Type

\ManaPHP\Security\CryptInterface

$identity

$identity : \ManaPHP\IdentityInterface

Type

\ManaPHP\IdentityInterface

$cache

$cache : \ManaPHP\Caching\CacheInterface

Type

\ManaPHP\Caching\CacheInterface

$httpClient

$httpClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$restClient

$restClient : \ManaPHP\Http\ClientInterface

Type

\ManaPHP\Http\ClientInterface

$db

$db : \ManaPHP\Data\DbInterface

Type

\ManaPHP\Data\DbInterface

$redisCache

$redisCache : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisDb

$redisDb : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$redisBroker

$redisBroker : \Redis|\ManaPHP\Data\RedisInterface

Type

\Redis|\ManaPHP\Data\RedisInterface

$mongodb

$mongodb : \ManaPHP\Data\MongodbInterface

Type

\ManaPHP\Data\MongodbInterface

$rabbitmq

$rabbitmq : \ManaPHP\Messaging\AmqpInterface

Type

\ManaPHP\Messaging\AmqpInterface

$elasticsearch

$elasticsearch : \Elasticsearch\Client

Type

\Elasticsearch\Client

$mailer

$mailer : \ManaPHP\Mailing\MailerInterface

Type

\ManaPHP\Mailing\MailerInterface

$bosClient

$bosClient : \ManaPHP\Bos\ClientInterface

Type

\ManaPHP\Bos\ClientInterface

$wspClient

$wspClient : \ManaPHP\Ws\Pushing\ClientInterface

Type

\ManaPHP\Ws\Pushing\ClientInterface

$coroutineManager

$coroutineManager : \ManaPHP\Coroutine\ManagerInterface

Type

\ManaPHP\Coroutine\ManagerInterface

$wsClient

$wsClient : \ManaPHP\Ws\ClientInterface

Type

\ManaPHP\Ws\ClientInterface

$pubSub

$pubSub : \ManaPHP\Messaging\PubSubInterface

Type

\ManaPHP\Messaging\PubSubInterface

$_context

$_context : \object

Type

\object

$_di

$_di : \ManaPHP\DiInterface

Type

\ManaPHP\DiInterface

$_level

$_level : integer

Type

integer

$_host

$_host : string

Type

string

$_levels

$_levels : array

Type

array

$_lazy

$_lazy : float

Type

float

$_buffer_size

$_buffer_size : integer

Type

integer

$_last_write

$_last_write : float

Type

float

$_object_id

$_object_id : integer

Type

integer

$_on

$_on : array<mixed,callable>

Type

array<mixed,callable>

$_injections

$_injections : array

Type

array

$_file

$_file : string

Type

string

$_format

$_format : string

Type

string

$_tail

$_tail : string

Type

string

Methods

__construct()

__construct(array  $options = array()) 

Parameters

array $options

onRequestEnd()

onRequestEnd() 

setLevel()

setLevel(integer|string  $level) : static

Parameters

integer|string $level

Returns

static

getLevel()

getLevel() : integer

Returns

integer

getLevels()

getLevels() : array

Returns

array

setLazy()

setLazy(boolean  $lazy = true) : static

Parameters

boolean $lazy

Returns

static

exceptionToString()

exceptionToString(\Throwable  $exception) : string

Parameters

\Throwable $exception

Returns

string

formatMessage()

formatMessage(\Throwable|array|\Serializable|\JsonSerializable  $message) : string

Parameters

\Throwable|array|\Serializable|\JsonSerializable $message

Returns

string

log()

log(integer  $level, string|array  $message, string  $category = null) : static

Parameters

integer $level
string|array $message
string $category

Returns

static

debug()

debug(string|array  $message, string  $category = null) : static

Sends/Writes a debug message to the log

Parameters

string|array $message
string $category

Returns

static

info()

info(string|array  $message, string  $category = null) : static

Sends/Writes an info message to the log

Parameters

string|array $message
string $category

Returns

static

warn()

warn(string|array  $message, string  $category = null) : static

Sends/Writes a warning message to the log

Parameters

string|array $message
string $category

Returns

static

error()

error(string|array  $message, string  $category = null) : static

Sends/Writes an error message to the log

Parameters

string|array $message
string $category

Returns

static

fatal()

fatal(string|array  $message, string  $category = null) : static

Sends/Writes a critical message to the log

Parameters

string|array $message
string $category

Returns

static

dump()

dump() : array

Returns

array

getInstance()

getInstance(string  $class, array  $params = array()) : mixed

Parameters

string $class
array $params

Returns

mixed

getShared()

getShared(string  $name) : mixed

Parameters

string $name

Returns

mixed

inject()

inject(string  $name, mixed  $target) : static

Parameters

string $name
mixed $target

Returns

static

__get()

__get(string  $name) : mixed

Magic method __get

Parameters

string $name

Returns

mixed

__set()

__set(string  $name, mixed  $value) : void

Parameters

string $name
mixed $value

__isset()

__isset(string  $name) : boolean

Parameters

string $name

Returns

boolean

attachEvent()

attachEvent(string  $event, callable  $handler, boolean  $appended = true) : static

Attach a listener to the events manager

Parameters

string $event
callable $handler
boolean $appended

Returns

static

detachEvent()

detachEvent(string  $event, callable  $handler) : static

Parameters

string $event
callable $handler

Returns

static

peekEvent()

peekEvent(string  $group, callable  $handler) : static

Parameters

string $group
callable $handler

Returns

static

fireEvent()

fireEvent(string  $event, mixed  $data = array(), mixed  $source = null) : void

Fires an event in the events manager causing that the active listeners will be notified about it

Parameters

string $event
mixed $data
mixed $source

on()

on(string  $event, callable  $handler) : static

Parameters

string $event
callable $handler

Returns

static

off()

off(string  $event = null, callable  $handler = null) : static

Parameters

string $event
callable $handler

Returns

static

emit()

emit(string  $event, array  $data = array()) : void

Parameters

string $event
array $data

__debugInfo()

__debugInfo() : array

Returns

array

toArray()

toArray() : array

Returns

array

jsonSerialize()

jsonSerialize() 

_createContext()

_createContext() : object

Returns

object

_parseLevel()

_parseLevel(integer|string  $level) : integer

Parameters

integer|string $level

Returns

integer

_getLocation()

_getLocation(array  $traces) : array

Parameters

array $traces

Returns

array

_inferCategory()

_inferCategory(array  $traces) : string

Parameters

array $traces

Returns

string

_write()

_write(string  $str) : void

Parameters

string $str