InvergeDocs
PHPAPI reference

Logs

Logs in the PHP SDK.

// access
$nexus->logs()

Logs

class
class Inverge\Nexus\Resource\Logs

Structured logging. Levels: trace, debug, info, warn, error, fatal.

View source

__construct

constructor
function __construct(Inverge\Nexus\NexusClient $client)

Parameters

Prop

Type

View source

log()

method
function log(string $level, string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

trace()

method
function trace(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

debug()

method
function debug(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

info()

method
function info(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

warn()

method
function warn(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

error()

method
function error(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

fatal()

method
function fatal(string $message, array $options = []): int

Parameters

Prop

Type

Returns int

View source

batch()

method
function batch(array $logs, array $context = []): int

Send a batch of log lines sharing one identity/context.

Parameters

Prop

Type

Returns int

View source

On this page