Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

Package dk.rode.thesis.meta.log

Defines the simple log model used throughout this project, including system out loggers and file loggers.

See:
          Description

Interface Summary
Log A very simple logger used in this project.
 

Class Summary
AbstractLog An abstract log implements the basic traits of any Log implementation.
AppendableLog An appendable log uses an Appendable object as the target for log messages, for example a PrintStream such as System.out.
FileLog A file log logs to a given file based on the class a given log is associated with, if any, or to the default log represented by a single physical log file.
LogFactory The log factory is the public interface to create and access logs.
LogManager A simple log manager to create and deliver logs to use, either globally or per unique class.
NullLog A null log discards all logged messages regardless if active or not.
 

Package dk.rode.thesis.meta.log Description

Defines the simple log model used throughout this project, including system out loggers and file loggers.

Implementation notes:
The log design is flawed. It should have used the Bridge pattern to separate the log (abstraction) from the output buffer (implementation). Hence, an implementation should target System.out, another a file, etc. As it is now, problems can occur while flushing because the test for new lines is only done per log, not per output buffer. Alas, no time to change it...

Author:
Gunni Rode / rode.dk

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.