Security/Users and Logs: Difference between revisions

Jump to navigation Jump to search
Line 30: Line 30:
=== How to Log Events - CEF Library  ===
=== How to Log Events - CEF Library  ===


==== Setup ====
Setup CEF - [Configuration Guide http://sync.ziade.org/doc/configuration.html#cef]
Setup CEF - [Configuration Guide http://sync.ziade.org/doc/configuration.html#cef]


Line 45: Line 46:
   product = A single name (no spaces) to represent the application (addons, sync, etc)
   product = A single name (no spaces) to represent the application (addons, sync, etc)


==== Log Event ====
Example:
  >>> from cef import log_cef
  >>> log_cef('SecurityAlert!', 5, environ, config,
  ...        msg='Someone has stolen my chocolate')


=== How to Log Events - Non-CEF Library  ===
=== How to Log Events - Non-CEF Library  ===
Confirmed users
491

edits

Navigation menu