Ticket #112 (closed enhancement: fixed)

Opened 6 months ago

Last modified 6 months ago

stubLogDataFactory::create() should not require session instance

Reported by: mikey Assigned to: mikey
Priority: major Milestone: 0.4.0
Component: Logging Version: SVN-trunk
Keywords: Cc:

Description

Currently it is required to have a session instance available if one wants to log data into a stubLogData object and this is to be created with stubLogDataFactory::create(). There needs to be a way to create stubLogData objects without a session available at the point where the logging should take place.

Change History

11/28/07 20:07:43 changed by mikey

Enhancement #113 depends on this.

11/28/07 20:08:03 changed by mikey

  • milestone set to 0.4.0.

11/29/07 00:23:15 changed by mikey

  • status changed from new to assigned.

11/29/07 00:28:14 changed by mikey

With changeset 1084 net::stubbles::util::log::stubBaseLogData became independent of the session. It will still get the session id for logging purposes as third parameter in its constructor.

Next step is to change net::stubbles::util::log::stubLogDataFactory::create() to get rid of the session parameter and to retrieve the session instance via net::stubbles::ioc::stubInjector.

11/29/07 17:55:42 changed by mikey

Refactored implementation with changeset 1087. This introduces a BC-break for the net::stubbles::util::log::stubLogDataFactory::create() method, the first parameter $session was removed. Session will be injected into logdata objects via bindings. The net::stubbles::util::log::stubBaseLogData class now has an optional dependency on net::stubbles::ipo::session::stubSession. With this commit net::stubbles::util::errorhandler::stubLogErrorHandler and net::stubbles::util::stubExceptionHandler are broken. Both will be repaired with one of the next commits. Disabled unit test for net::stubbles::util::errorhandler::stubLogErrorHandler in the meanwhile.

11/29/07 18:26:35 changed by mikey

Fixed net::stubbles::util::errorhandler::stubLogErrorHandler with changeset 1088.

11/29/07 19:14:06 changed by mikey

Replaced net::stubbles::util::stubExceptionHandler with better implementations in package net::stubbles::util::errorhandler in changeset 1089.

11/29/07 22:40:00 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

Updated documentation and changelog.