Some words about logging

Hi,

I took a look into my debugging-log the last days (reason are some problems with the gatewayplugin) and I noticed every plugin logging into the same output. So you have no flag to see where this output comes from.

Wouldn’'t it be better to analyse which plugin (or main component) loggs the message?

I would prefer messages like:

2007.04.14 00:01:13    main Starting up component [...]
2007.04.14 00:02:24 gateway Received presence packet: [...]
2007.04.14 00:02:24 gateway Received iq packet: [...]

instead of (like it is now)

2007.04.14 00:01:13 Starting up component [...]
2007.04.14 00:02:24 Received presence packet: [...]
2007.04.14 00:02:24 Received iq packet: [...]

Shure, this could be done by the plugindevs themselve, but it would be much nicer if there are methods in the logging framework supporting this.

I know this is difficult because the logging is done by static methods, but it could be done by changing the methods and introducing a new string or by analysing the stacktrace (costs much time).