why not point commons-logging to log4j and use the log4j API for this?
On Tue, Jun 2, 2009 at 3:05 PM, Captain Haddock <[email protected]> wrote:
> Thanks Yair
>
> That will work for log4j.
>
> Don't see any equivalent in commons-logging .. any thoughts there anyone?
>
>
> Yair Ogen wrote:
>
>> We use a transaction id which we put in MDC and print using the
>> %X{MDC_KEY}
>> notation in the conversion pattern.
>>
>> On Tue, Jun 2, 2009 at 12:57 AM, David Grigglestone <[email protected]
>> >wrote:
>>
>> Maybe I'm missing something in the API but I don't see API support for
>>> associating a unique (e.g. numeric) identifier to a message.
>>>
>>> Unique message identifiers are useful in production systems to allow:
>>>
>>> * Easy message identification irrespective of localization
>>> * A key on which JIRA or knowledge base issues can be based
>>> * A key from which automated management actions can be triggered
>>>
>>> The best I can think of is embedding such an identifier in a message,
>>> e.g.
>>> "[#2506] System has a headache".
>>>
>>> How have others dealt with this need?
>>>
>>> Are there any additional logging libraries that can help deal with this
>>> issue or any other relevant works that may be of interest?
>>>
>>> thanks for your input, David
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>