Makes a log entry and displays it to the user.
| Parameters | |||
|---|---|---|---|
integer
|
$type |
Severity from 0 to 3 (inclusive) where 0 is for verbose messages, 1 is general, 2 is warning, and 3 is error. Error logs can pause the program for an amount of time in seconds if the sleep-on-error argument is above 0. |
# |
string
|
$message |
The message to be logged. |
# |
string
|
$formattedMessage = '' |
Optionally a formatted version of the message that will be printed instead of the original message. The original message will still be saved. |
# |
| Returns | |
|---|---|
void
|
If mklog has an issue it will shout at the user. |