| |
 | Posted by Matthew Wilson in reply to Stanislav | Permalink Reply |
|
Matthew Wilson 
Posted in reply to Stanislav
| Sorry about the long delay.
The answer to this is, simply, that the stock back-ends supplied with Pantheios do not support this functionality, and there're no
current plans to add that support.
One of the design parameters of Pantheios is that it is intended to be used on top of existing logging libraries where logging
formatting/outputting requirements are sophisticated.
I'd suggest having a go at adapting it to work with log4???. Alternatively, you might consider writing the library identifiers as
the first element in the log statement, as in:
const char LibId_Xml[] = "xmllib: ";
. . .
pantheios::log_Debug(LibId_Xml, "stmt 3");
which you give you output such as
"[my-app-name, 11.07.2008 11:25:24.486; Debug]: xmllib: stmt 3"
this is almost equivalent, and is just as parsable by logging analysis tools.
HTH
If you really want to have exactly what you've expressed, we could write a custom back-end for you, on a commercial basis. If so,
contact me via http://www.synesis.com.au/contact.html and we can go from there.
Cheers
Matt
"Stanislav" <digital.stream.of.mind@gmail.com> wrote in message news:g56rsc$1n1m$1@digitalmars.com...
> How can i use multiple application name/identity for different parts of project. Application is a single file. It doesn't consist of several dynamic libraries.
>
> For example, i want something like this:
> [corelib, 11.07.2008 11:25:24.486; Notice]: stmt 1
> [corelib, 11.07.2008 11:25:24.486; Notice]: stmt 2
> [xmllib, 11.07.2008 11:25:24.486; Debug]: stmt 3
|