Changes to miniLogger 1.0
Changes are kept in reverse chronological order.
In future
2003-03- (MINILOGGER_1_1_1)
- TODO: generalize setSink to allow plugins to other logger
with more feature and bigger size (log4j, JDK 1.4, etc.)
2003-03-17 (MINILOGGER_1_0_7)
- added caught() method to Logger that can be used to
trace how exceptions are caught - prints "CAUGHT" and exception stack trace
on FINER level
- changed caught() and throwing() methods to return Throwable argument so it
is possible now to log and throw exception in one line:
throw
Logger.throwing(new MyException());
- modified build.xml to
generate MANIFEST.MF with version info
2003-03-13 (MINILOGGER_1_0_6)
- added printing of logger name in output (to simplify grep like filtering)
and made it intelligent so when name of logger is FQN just [print package name
and avoid printing class name as it is printed next as java source file name ...
2003-03-02 (MINILOGGER_1_0_5)
- added global method setShowTime() and changed logger to print by defult timestamps
formatted as HH:mm:ss.mmm
(more details in RFE)
and added property showtime (
-Dshowtime) that can control showing of timestamps in log
(by default it is set to true)
- changed implementation of Logger.setCmdLogger() so that list of anchoredLoggers
(this list keeps loggers that are prevented from garbage collecting even when class
using them is out of scope) will have no duplicates that otherwise would be created
if setCmdLogger() was called multiple times with the same argument
- fixed potential bug in Logger.setCmdLogger() when called again with the same
argument it created new logger replacing existing one even if there was no need to do it
(now it is smart to check for existing logger and only set its level if needed)
- changed static initializer of Logger to print exception to System.err
about access denied to read system property
(java.security.AccessControlException: access denied (java.util.PropertyPermission debug read))
only when Loggers is compiled with static flag WARN set to true
- wrapped calls to System.getProperty() for "log" and "debug" into
AccessController.doPrivileged() with catching AccessControlException
to allow running logger even if system properties can not be accessed
2002-04-12 (MINILOGGER_1_0_4)
-
added Logger.entering(..), exiting() and thrown() convenience methods; both
compatible with JDK 1.4 and are as well using MINILOGGER ability to automatically
get class and method name allowing to write simply
logger.entering() instead of
logger.entering("FooClass", "methodBar") -
this way it is less error prone! -
added log methods that takes Object parameter and list of Objects that are
converted toString() and printed
2002-03-01 (MINILOGGER_1_0_3)
- fixed bug with weak references: when loggers were configured from command
line the reference to loggers were not preserved. therefore when those loggers
were garbage collected they disappeared from LogManager and it was affecting
setup of default logging levels for new loggers (interestingly showed only under
Linux JDK 1.3 and not Solaris ...)
2002-02-22 (MINILOGGER_1_0_2)
2002-02-22 (MINILOGGER_1_0_1)
- finally minilogger is packaged and made ready for other people to use
[Back To MINILOGGER Documentation]
Aleksander Slominski