Opened 8 years ago

Closed 8 years ago

#2013 closed task (fixed)

Add support for logging when items are viewed

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.9
Component: core Version:
Keywords: Cc:

Description

The change logging system (#108) already in use should be extended with support for logging when items are viewed. The change logging is automatic and implemented at a deep level (hooking into Hibernate).

The view logging need to be different since at the Hibernate level there is no information if someone is actually going to view the information.

A VIEW log entry need to be invoked from the client application that is displaying the information.

In this stage we should not implement any VIEW logging in the regular web client.

Follow-up things to consider:

  • Should the "Change history" tab in the GUI be renamed to something else?
  • Should the VIEW log entries require special permission just as viewing the old/new values in the change log?

Change History (5)

comment:1 by Nicklas Nordborg, 8 years ago

Milestone: BASE Future ReleaseBASE 3.9
Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 8 years ago

(In [7164]) References #2013: Add support for logging when items are viewed

Added an API for this. Client applications should call DbControl.logEntry(ManualLogEntry) to initiate a log entry. If the logging actually happens depend on if logging has been enabled or not and if the logging extensions have support for manual entries.

The built-in database logging (DbLogManagerFactory) support manual logging (via ManualEntryLogger) for all items that implements the LoggableData interface.

comment:3 by Nicklas Nordborg, 8 years ago

(In [7166]) References #2013: Add support for logging when items are viewed

Renamed "Change history" to "History".

comment:4 by Nicklas Nordborg, 8 years ago

(In [7167]) References #2013: Add support for logging when items are viewed

Added a test case for creating a manual log entry.

comment:5 by Nicklas Nordborg, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.