Never worked with aspects. Could you provide some snippets?
On 19-03-2012 09:52, Nicolas Hernandez wrote:
Hello,
It is really difficult to have a complete log system working. One
solution is to use aspects.
Is this a good idea ?
- Nicolas Hernandez
a-n - aleph-networks
/associé/
http://www.aleph-networks.com
On Mon, Mar 19, 2012 at 12:40 AM, Marco Schulze
<[email protected] <mailto:[email protected]>> wrote:
One thing has been bothering me: those 'if (logMINOR)
Logger.minor(...', and the mess that logging is inside fred. I've
written a very simple replacement for Logger + associated classes
with the following changes:
- Log level (renamed to severity) filtering is done by Logging.log();
- Specific writer classes are replaced by a simple OutputStream,
which defaults to System.err. Formatting is also unified;
- Severity cases are broadened (FATAL, ERROR, WARNING, INFO, DEBUG
and TRACE), MINOR is mapped to DEBUG, and NORMAL is mapped to INFO;
- No logging method accepts an Object parameter - hashCode() is
not exactly useful.
Additionally, log rotation will be moved outside (possibly inside
Node).
Currently, the log format is '<severity>\t<message>'.
_______________________________________________
Devl mailing list
[email protected] <mailto:[email protected]>
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
_______________________________________________
Devl mailing list
[email protected]
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
_______________________________________________
Devl mailing list
[email protected]
https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl