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 
> <marco.c.schulze at gmail.com <mailto:marco.c.schulze at gmail.com>> 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
>     Devl at freenetproject.org <mailto:Devl at freenetproject.org>
>     https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
>
>
>
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> https://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20120319/c848b968/attachment.html>

Reply via email to