Log4jME, or log4j MicroEdition is based on nearly the same code as
log4j. However, as the
name indicates the micro-edition is much smaller. It offers the same
or similar client interface such that code compiled for log4jME is 100%
compatible with log4j standard edition. You can choose to upgrade to
log4j standard edition at any time by replacing
log4jME.jar
with log4j.jar
in your
classpath.
The features of log4jME are
The org.apache.log4j.Category
shipped with log4jME has
the same interface except support for ResourceBundles
,
custom category factories and object renderers.
Log4jME contains a modified
org.apache.log4jFileAppender
which supports logging to
files and output streams including Systemout
and
System.err
.
Log4jME contains a modified
org.apache.log4j.PatternLayout
which supports the a
limited set of conversion characters namely,
%p
,
%t
,
%r
,
%c
,
%m
,
%n
as well as literals. In particular, a modified support of
is provided %d
but
%x
conversion characters are not supported.
Log4jME contains a modified
org.apache.log4j.PropertyConfigurator
which supports the
same configuration syntax as the PropertyConfigurator
in
the standard edition except support for category factories and
renderers.
The micro edition does nor offer the same number of appenders and
layouts as in the standard edition. The DOMConfigurator
is also not supported.