The same user can have multiple sessions if they log in to BlueCat Gateway on multiple computers or browsers. Workflow, application, and plugin developers can write messages to the user session logs as part of their workflow.
To access the user session logger resource, access the following resource:
g.user.logger
Before using the user session logger, make sure that the g.user
object
exists and is not None. All log messages for a session include the username and a
timestamp when the message was logged.
For more details about the log file format, see User login and logout records.
The user session logger supports five different levels of log messages. In order of increasing severity, they are:
g.user.logger.debug('message')
g.user.logger.info('message')
g.user.logger.warning('message')
g.user.logger.error('message')
g.user.logger.critical('message')
You can maintain logging configuration through the configuration workflow.