Issue Details (XML | Word | Printable)

Key: GDS-165
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Franck Wolff
Reporter: Franck Wolff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GraniteDS

Make log4j dependency optional

Created: 05/Aug/08 03:55 PM   Updated: 26/Aug/08 02:55 PM   Resolved: 05/Aug/08 04:05 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0_RC4

Issue Links:
Dependent
 


 Description  « Hide
GDS should rely on log4j and allow alternate logging systems.

Repository Revision Date User Message
Granite Data Services SVN Repository #1557 Tue Aug 05 15:56:48 CEST 2008 fwolff GDS-165: make log4j dependency optional.
Files Changed
MODIFY /graniteds/trunk/core/org/granite/logging/Logger.java
ADD /graniteds/trunk/core/org/granite/logging/Log4jLogger.java
MODIFY /graniteds/trunk/.classpath
ADD /graniteds/trunk/core/org/granite/logging/Level.java
ADD /graniteds/trunk/core/org/granite/logging/JdkLogger.java
Repository Revision Date User Message
Granite Data Services SVN Repository #1558 Tue Aug 05 15:57:59 CEST 2008 fwolff GDS-165: make log4j dependency optional.
Files Changed
MODIFY /graniteds/trunk/core/org/granite/logging/Level.java
Franck Wolff added a comment - 05/Aug/08 04:05 PM
New implementation uses log4j if available and switch to java.util.logging otherwise.

It is also possible to specify a startup variable: -Dorg.granite.logger.impl=path.to.MyLogger.
Note that MyLogger must extend org.granite.logging.Logger and have a public constructor with this signature:
public MyLogger(String name, LoggingFormatter formatter).

Franck Wolff made changes - 05/Aug/08 04:05 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Franck Wolff made changes - 26/Aug/08 02:55 PM
Link This issue is dependent on GDS-189 [ GDS-189 ]