debuglog.php
Table of Contents
- debuglog() : mixed
- Documentated by Catscradler Add to the user's log if $field $value and $consolidate have values, entry will be merged with existing line from today with identical $field.
Functions
debuglog()
Documentated by Catscradler Add to the user's log if $field $value and $consolidate have values, entry will be merged with existing line from today with identical $field.
debuglog(string $message[, int $target = false ][, int $user = false ][, string $field = false ][, int $value = false ][, bool $consolidate = true ]) : mixed
otherwise, a new line will be added to the log.
Parameters
- $message : string
-
the text to be added
- $target : int = false
-
acctid of the user on the receiving end of the event eg. the user who did NOT initiate PvP, gold transfer recipient (optional)
- $user : int = false
-
acctid of the user the log entry is about (optional, defaults to current user)
- $field : string = false
-
the label for this line, appears as first word on this line in the log eg. healing, forestwin (optional)
- $value : int = false
-
how much was gained or lost. Only useful if also using $field and $consolidate (optional)
- $consolidate : bool = true
-
add $value to previous log lines with the same $field, keeping a running total for today (optional, defaults to true)