Télécharger la liste

Description du projet

miniLogger is a very small (4 classes and a 10KB
jar) and easy to use logger. It uses a logging API
that is a subset of JDK 1.4 logging but works on
all Java 2 versions. It has been tested on
Windows, Solaris, IRIX, and Linux for versions 1.2
and 1.3 of the Sun JDK. It supports logger control
from the command line. Logger names are
hierarchical separated by dots, and selecting any
name automatically selects all names below. If
logger_name is an empty string, it will affect all
loggers. The loggers and level options are
evaluated from left to right. It prints the thread
name, source file name, and number line by
default, and output can be redirected from
System.err to file or any PrintStream. Finally,
the logger hierarchy can easily mirror a
package/class hierarchy or can be arbitrarily
defined by the user.

Système requise

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2003-03-18 13:59
1.0.7

Ceci est une version de maintenance avec des modifications mineures. Le Logger.throwing () et Logger.caught () Les méthodes ont été modifiées pour retourner leur argument si elle est Throwable, ce qui rend possible de se connecter et jeter exception dans une ligne (par exemple, «jeter Logger.throwing (MonException new () )) ". Ajoutée The Logger.caught () méthode, qui peut être utilisé pour suivre lorsque des exceptions sont capturés, il a été ajouté. La sortie de journalisation a été amélioré de sorte qu'il contienne le nom du logger (pour simplifier, comme grep-filtrage) et d'un horodatage. Le script de compilation a été modifié pour ajouter le numéro de version du paquet du manifeste pour le fichier inclus dans le fichier JAR. Pour permettre un déroulement dans le bac à sable, les appels d'installation pour System.getProperty () sont maintenant enveloppés dans AccessController.doPrivileged ().
Tags: Minor feature enhancements
This is a maintenance version with only minor modifications. The Logger.throwing() and Logger.caught() methods were changed to return their argument if it is Throwable, which makes it possible to log and throw exception in one line (for example, "throw Logger.throwing(new MyException()))". Added The Logger.caught() method, which can be used to trace when exceptions are caught, was added. The logger output was improved so that it contains the logger name (to simplify grep-like filtering) and a timestamp. The build script was changed to add the package's version number to the MANIFEST file included in the JAR file. To allow running in sandbox, setup calls to System.getProperty() are now wrapped in AccessController.doPrivileged().

2002-04-13 09:27
1.0.4

Ajouté Logger.entering sortant (..), (), et jeté () méthodes bien pratiques, qui sont compatibles avec le JDK 1.4 et de déterminer automatiquement la classe et le nom de la méthode pour permettre l'écriture logger.entering () au lieu de logger.entering ( " FooClass "," methodBar "). Cette version apporte également des méthodes journaux qui prennent des paramètres d'objet et d'une liste d'objets, qui sont convertis en utilisant toString () et imprimé.
Tags: Minor feature enhancements
Added Logger.entering(..), exiting(), and thrown() convenience methods, which are compatible with JDK 1.4 and automatically determine the class and method name to allow for writing logger.entering() instead of logger.entering("FooClass", "methodBar"). This release also adds log methods that take object parameters and a list of objects, which are converted using toString() and printed.

2002-03-30 02:10
1.0.3

Un correctif pour un bug avec les références faibles: quand les bûcherons sont configurés à partir de la ligne de commande, la référence aux bûcherons n'ont pas été conservés. Par conséquent, lorsque ces enregistreurs ont été ramasse-miettes ils disparurent de LogManager et il était touchant de configuration par défaut les niveaux d'enregistrement pour les bûcherons de nouvelles (Fait intéressant, le bug a montré que sous Linux du JDK 1.3, pas Solaris).
Tags: Initial freshmeat announcement
A fix for a bug with weak references: when loggers were configured from commandline, 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, the bug showed only under Linux JDK 1.3, not Solaris).

Project Resources