-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sumit,

On 6/25/2009 7:42 AM, Sumit D wrote:
> *By "write some data in an object" I wanted to say that, when the logs are
> written, *
> *then and there I would like to have the same information encapsulated in an
> object*
> because we need to send it to our framework.
> 
> Another option would be analyzing
> the logs and extracting the info. But I thought it might be a bit easier to
> get it in
> some object.

Okay. So, define some object that meets your needs, and write the log
message not only to the log file, but also "to" your object (whatever
that means: queuing a string, etc.). Stick the object in either the
request (if the scope of this info ought to be the request) or stick it
in the ServletContext.

Do you want us to give you some ideas? This sounds like it's pretty
straightforward. Many of us get paid for our software work...

See Chuck's responses re:context.xml and <Valve> configuration.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpEz6oACgkQ9CaO5/Lv0PCEXgCglFVsnckUCkzBDpMDrlOFXH5t
KPgAn1TSPNC+TohJ/uqgEWEabBQKEbw0
=pa7F
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to