- ⌂ repo
- Methods
- Constructor
- execute()
- get()
- get_content_type()
- get_first()
- get_object()
- get_object_by_id()
- get_object_by_oid()
- get_object_by_doid()
- get_object_by_uuid()
- get_objects_by_id()
- get_objects_by_oid()
- get_objects_by_doid()
- get_objects_by_uuid()
- get_root()
- get_row()
- get_rows()
- get_system_property()
- log_alert()
- log_critical()
- log_to_file()
- log_to_html()
- new_collection()
- new_object()
- peek_user()
- pop_user()
- push_super_user()
- push_user()
- query()
- supports_dimensions()
- switch_user()
- uninit()
- with()
repo::log_alert()
Log an alert event to the repo::SystemLog event log.
Prototype
void log_alert(string $message, mixed $extra = NULL, long $timetamp = NULL)
Parameters
- message - Message about the event.
- extra - Optional string, array or other data that corresponds to event.
- timestamp - Optional Unix timestamp the event occurred, otherwise the current time will be used.
Example
$repo->log_alert("Critical issue. System should exit soon.");