PHPAPI reference
Logs
Logs in the PHP SDK.
// access
$nexus->logs()Logs
classclass Inverge\Nexus\Resource\LogsStructured logging. Levels: trace, debug, info, warn, error, fatal.
View source__construct
constructorfunction __construct(Inverge\Nexus\NexusClient $client)Parameters
Prop
Type
log()
methodfunction log(string $level, string $message, array $options = []): intParameters
Prop
Type
Returns int
trace()
methodfunction trace(string $message, array $options = []): intParameters
Prop
Type
Returns int
debug()
methodfunction debug(string $message, array $options = []): intParameters
Prop
Type
Returns int
info()
methodfunction info(string $message, array $options = []): intParameters
Prop
Type
Returns int
warn()
methodfunction warn(string $message, array $options = []): intParameters
Prop
Type
Returns int
error()
methodfunction error(string $message, array $options = []): intParameters
Prop
Type
Returns int
fatal()
methodfunction fatal(string $message, array $options = []): intParameters
Prop
Type
Returns int
batch()
methodfunction batch(array $logs, array $context = []): intSend a batch of log lines sharing one identity/context.
Parameters
Prop
Type
Returns int
