I did a little digging around the Apache Commons Logging interface and 
source code. As far as I can tell, the LogInterface itself is safe to use 
on J2ME and does not use any classes that are specific to J2SE. However 
the default LogFactory implementation uses reflection and from what I have 
read, those classes are not available in J2ME.

So I'd suggest using the Commons API within Muse because 1) it is JSR-47 
compliant 2) its pretty much a standard API 3) it provides the abstraction 
we are looking for 4) It will work fine on J2ME

We will have to write a LogFactory implementation that will not use 
reflection and introduce our own discovery mechanism. My suggestion is to 
just rely on a system property for determining which kind of Log instances 
must be produced for a particular platform -one that delegates to the 
Equinox logger or one to the J2SE logger. 

I am working on creating a basic LogFactory implementation that will work 
in a J2ME setup. I will post what I find as soon as I am done with it.

Balan

Balan Subramanian 
Autonomic Computing, IBM, RTP, NC
919.543.0197 | [EMAIL PROTECTED]


Reply via email to