Kickass Crypto

Find us on GitHub: https://github.com/jj5/kickass-crypto.

KICKASS_DEBUG_LOG

2023-04-07 jj5 - these traits are defined for debugging purposes; they redefine the logging function so that a log is not actually written unless the DEBUG constant is defined as true.

Table of Contents

do_log_error()  : bool
2023-04-02 jj5 - if you include this trait logs will only be written if DEBUG is defined.

Methods

do_log_error()

2023-04-02 jj5 - if you include this trait logs will only be written if DEBUG is defined.

protected do_log_error(string $message, string $file, int $line, string $function) : bool

..

Parameters
$message : string

the message to log.

$file : string

the path to the file writing the log.

$line : int

the line in the file from which the log is written.

$function : string

the name of the function writing the log.

Return values
bool

true on success false on failure.

Search results