Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
pankaj Singh kharkwal
abt java Logs
13. Dezember 2012 05:10
Antwort

pankaj Singh kharkwal

Rang: New Member

Nachrichten: 4

Eintrittsdatum: 4. April 2012

Neue Beiträge

hi there, can anyone tell me how to store loggs in daata base..????????
David H Nebinger
RE: abt java Logs
13. Dezember 2012 10:13
Antwort

David H Nebinger

Community Moderator

Rang: Liferay Legend

Nachrichten: 11087

Eintrittsdatum: 1. September 2006

Neue Beiträge

Liferay uses log4j at it's core for logging. You can use a JDBCAppender to push the log info to the database: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jdbc/JDBCAppender.html

Here's more of a tutorial: http://www.tutorialspoint.com/log4j/log4j_logging_database.htm

Note the warning on the JDBCAppender where it indicates that exceptions (plus stack traces) are not logged.
Subhash Pavuskar
RE: abt java Logs
14. Dezember 2012 22:57
Antwort

Subhash Pavuskar

Rang: Regular Member

Nachrichten: 234

Eintrittsdatum: 12. März 2012

Neue Beiträge

Hey ,


Go with this link for logging information Link

Hope this may help you !!