Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Vishal Kumar
How to save user logs In DB
December 13, 2012 11:12 PM
Answer

Vishal Kumar

Rank: Junior Member

Posts: 39

Join Date: December 11, 2012

Recent Posts

Hi,
I want to store some of the User Activities Logs in DB tables,not in flat file.
Is there any way to configure user logs in database in liferay.
Thanks in Advance.
Muniraj saravanan
RE: How to save user logs In DB
December 14, 2012 2:57 AM
Answer

Muniraj saravanan

Rank: Junior Member

Posts: 75

Join Date: June 1, 2011

Recent Posts

try to use audit Portlet

http://www.liferay.com/community/wiki/-/wiki/Main/Audit+Service


thanks
Saravanan
Vishal Kumar
RE: How to save user logs In DB
December 14, 2012 4:44 AM
Answer

Vishal Kumar

Rank: Junior Member

Posts: 39

Join Date: December 11, 2012

Recent Posts

Is the functionality is available in the Community Edition or Not.
Or Its is available in Enterprise edition only.
David H Nebinger
RE: How to save user logs In DB
December 14, 2012 5:29 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8176

Join Date: September 1, 2006

Recent Posts

The portlet is enterprise only, but the framework is available in CE.
Hitoshi Ozawa
RE: How to save user logs In DB
December 16, 2012 2:41 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

You're only asking on how to configure. Is there already a log being written out to the flat file? It's probably just using log4j so you just have to configure that to write out to the database. Try using DBAppender.
Vishal Kumar
RE: How to save user logs In DB
December 16, 2012 11:46 PM
Answer

Vishal Kumar

Rank: Junior Member

Posts: 39

Join Date: December 11, 2012

Recent Posts

I want to log set of activities for each user activity in DB.Will it work with DBAppender?
Then what is the actual use of "Audit Service" portlet?
Vishal Kumar
RE: How to save user logs In DB
December 17, 2012 10:29 PM
Answer

Vishal Kumar

Rank: Junior Member

Posts: 39

Join Date: December 11, 2012

Recent Posts

Thank you Hitoshi.
Hitoshi Ozawa
RE: How to save user logs In DB
December 18, 2012 5:24 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Seems you're mixing two questions here. Do you want to know to to log users' actions or do you want to know to to output log file to a database?
Audit service is used to log users' actions. DBAppender is used to output log file to a database.