| 
    Elgg
    Version 1.12
    
   | 
 
Go to the source code of this file.
Namespaces | |
| Elgg\Core | |
| Activate a plugin or plugins.  | |
Functions | |
| get_system_log ($by_user="", $event="", $class="", $type="", $subtype="", $limit=null, $offset=0, $count=false, $timebefore=0, $timeafter=0, $object_id=0, $ip_address="") | |
| Retrieve the system log based on a number of parameters.  More... | |
| get_log_entry ($entry_id) | |
| Return a specific log entry.  More... | |
| get_object_from_log_entry ($entry) | |
| Return the object referred to by a given log entry.  More... | |
| system_log ($object, $event) | |
| Log a system event related to a specific object.  More... | |
| archive_log ($offset=0) | |
| This function creates an archive copy of the system log.  More... | |
| system_log_default_logger ($event, $object_type, $object) | |
| Default system log handler, allows plugins to override, extend or disable logging.  More... | |
| system_log_listener ($event, $object_type, $object) | |
| System log listener.  More... | |
Variables | |
| return | function (\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) | 
| archive_log | ( | $offset = 0 | ) | 
This function creates an archive copy of the system log.
| int | $offset | An offset in seconds from now to archive (useful for log rotation) | 
Definition at line 264 of file system_log.php.
| get_log_entry | ( | $entry_id | ) | 
Return a specific log entry.
| int | $entry_id | The log entry | 
Definition at line 124 of file system_log.php.
| get_object_from_log_entry | ( | $entry | ) | 
Return the object referred to by a given log entry.
| \stdClass | int | $entry | The log entry row or its ID | 
Definition at line 139 of file system_log.php.
| get_system_log | ( | $by_user = "",  | 
        |
$event = "",  | 
        |||
$class = "",  | 
        |||
$type = "",  | 
        |||
$subtype = "",  | 
        |||
$limit = null,  | 
        |||
$offset = 0,  | 
        |||
$count = false,  | 
        |||
$timebefore = 0,  | 
        |||
$timeafter = 0,  | 
        |||
$object_id = 0,  | 
        |||
$ip_address = ""  | 
        |||
| ) | 
Retrieve the system log based on a number of parameters.
| int | array | $by_user | The guid(s) of the user(s) who initiated the event. Use 0 for unowned entries. Anything else falsey means anyone. | 
| string | $event | The event you are searching on. | 
| string | $class | The class of object it effects. | 
| string | $type | The type | 
| string | $subtype | The subtype. | 
| int | $limit | Maximum number of responses to return. (default from settings) | 
| int | $offset | Offset of where to start. | 
| bool | $count | Return count or not | 
| int | $timebefore | Lower time limit | 
| int | $timeafter | Upper time limit | 
| int | $object_id | GUID of an object | 
| string | $ip_address | The IP address. | 
Definition at line 30 of file system_log.php.
| system_log | ( | $object, | |
| $event | |||
| ) | 
Log a system event related to a specific object.
This is called by the event system and should not be called directly.
| object | $object | The object you're talking about. | 
| string | $event | The event being logged | 
Definition at line 191 of file system_log.php.
| system_log_default_logger | ( | $event, | |
| $object_type, | |||
| $object | |||
| ) | 
Default system log handler, allows plugins to override, extend or disable logging.
| string | $event | Event name | 
| string | $object_type | Object type | 
| Loggable | $object | Object to log | 
Definition at line 303 of file system_log.php.
| system_log_listener | ( | $event, | |
| $object_type, | |||
| $object | |||
| ) | 
System log listener.
This function listens to all events in the system and logs anything appropriate.
| String | $event | Event name | 
| String | $object_type | Type of object | 
| Loggable | $object | Object to log | 
Register event to listen to all events
Register a default system log handler
Definition at line 320 of file system_log.php.
| return function(\Elgg\EventsService $events, \Elgg\HooksRegistrationService $hooks) | ( | \Elgg\EventsService | $events, | 
| \Elgg\HooksRegistrationService | $hooks | ||
| ) | 
Definition at line 328 of file system_log.php.