Documentation

Http extends AbstractWriter
in package

Http log writer class

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2023 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
3.3.0

Table of Contents

$limit  : int
Log limit
$stream  : Stream
Stream object
__construct()  : mixed
Constructor
getContext()  : string
Get context for log
getLogLimit()  : int
Get log limit
hasLogLimit()  : bool
Has log limit
isWithinLogLimit()  : bool
Check if a log level is within the set log level limit
setLogLimit()  : AbstractWriter
Set log limit
writeLog()  : Http
Write to the log

Properties

Methods

__construct()

Constructor

public __construct(Stream $stream) : mixed

Instantiate the Mail writer object

Parameters
$stream : Stream
Return values
mixed

getContext()

Get context for log

public getContext([array<string|int, mixed> $context = [] ]) : string
Parameters
$context : array<string|int, mixed> = []
Return values
string

getLogLimit()

Get log limit

public getLogLimit() : int
Return values
int

hasLogLimit()

Has log limit

public hasLogLimit() : bool
Return values
bool

isWithinLogLimit()

Check if a log level is within the set log level limit

public isWithinLogLimit(int $level) : bool
Parameters
$level : int
Return values
bool

writeLog()

Write to the log

public writeLog(mixed $level, string $message[, array<string|int, mixed> $context = [] ]) : Http
Parameters
$level : mixed
$message : string
$context : array<string|int, mixed> = []
Return values
Http

Search results