Свойство | Тип | Описание | |
---|---|---|---|
$get_param_cache |
Метод | Описание | |
---|---|---|
__get ( string $name ) : boolean | Returns properties of a EventLog object. | |
get ( array $paramarray = [] ) : array | Returns a LogEntry or EventLog array based on supplied parameters. | |
get_module ( null $module = null, integer $level = 2 ) : string | Get the module in which the logged code was executed | |
log ( string $message, string $severity = 'info', string $type = 'default', string $module = null, mixed $data = null ) : object | Write an entry to the event log. | |
purge ( ) | ||
register_type ( string $type = 'default', string $module = null ) | Adds a logging type to the lookup table | |
trim ( ) | * Trim the EventLog down to the defined number of days to prevent it getting massively large. | |
unregister_type ( string $type = 'default', string $module = null ) | Removes a logging type from the lookup table |
public static get ( array $paramarray = [] ) : array | ||
$paramarray | array | An associated array of parameters, or a querystring The following keys are supported: - id => an entry id or array of post ids - user_id => id of the logged in user for which to return entries - severity => severity level for which to return entries - type_id => the numeric id or array of ids for the type of entries for which which to return entries - module => a name or array of names of modules for which to return entries - type => a single type name or array of type names for which to return entries - ip => the IP number for which to return entries - criteria => a literal search string to match entry message content or a special search - day => a day of entry creation, ignored if month and year are not specified - month => a month of entry creation, ignored if year isn't specified - year => a year of entry creation - orderby => how to order the returned entries - fetch_fn => the function used to fetch data, one of 'get_results', 'get_row', 'get_value' - count => return the number of entries that would be returned by this request - month_cts => return the number of entries created in each month - nolimit => do not implicitly set limit - limit => the maximum number of entries to return, implicitly set for many queries - index => - offset => amount by which to offset returned entries, used in conjunction with limit - where => manipulate the generated WHERE clause - return_data => set to return the data associated with the entry |
Результат | array | An array of LogEntry objects, or a single LogEntry object, depending on request |
public static log ( string $message, string $severity = 'info', string $type = 'default', string $module = null, mixed $data = null ) : object | ||
$message | string | The message |
$severity | string | The severity |
$type | string | The type |
$module | string | The module |
$data | mixed | The data |
Результат | object | LogEntry The inserted LogEntry object |
public static register_type ( string $type = 'default', string $module = null ) | ||
$type | string | The type of the error |
$module | string | The module of the error |
public static trim ( ) |
public static unregister_type ( string $type = 'default', string $module = null ) | ||
$type | string | The type of the error |
$module | string | The module of the error |