Hi,
I have a working application that uses an SMTP appender.
This appendere is used for administration purposes. Only for certain
fatal exceptions, a mail is sent toward the support team.
Now, for the same events, I have to send short messages (SMS) using
another SMTP appender (we have a mail server which transforms incoming
mail messages into SMS and it forwards them to a configured cell phones
list).
I tought to add another appender using the same logger but given the sms
size restrictions (not more than 160 chars) I cannot send a full stack
trace.
I'm looking for a method to modifying (cutting) the outcoming logging
message on the fly. In this way I could update only the log4j conf files
without touching my working app.
Something like a %m with the ability to specify a maximum number of
chars.
I looked into the docs but I didn't find anything.

Any suggestion?

Thank you in advance 

--
Davide De Benedictis


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to