Brimbox Logo Brimbox Version 2.3.4 Released

log>>

Method to add a log message to the database log_table, along with username/email and ip address.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function log($con, $message, $username = NULL, $email = NULL)

Usage:

$main->function log($con, $message, $username, $email);

Action: Inputs a log entry into the log_table.

Parameter: $con (database connector)
Valid database connection

Parameter: $message (string)
Message to be logged in database.

Parameter: $username (string default global $username)
If user is logged in, the username of the current user, or the username used in the login attempt.

Parameter: $email (string default global $email)
If user is logged in, the email of the current user.

Updated: 2016-07-17