What are the events logged in dspace log file and how to modify dspace code to record only few event

404 views
Skip to first unread message

prasa...@gmail.com

unread,
Jun 5, 2018, 3:25:10 AM6/5/18
to DSpace Community
dspace is logging several events and there by increasing its size drastically. It is tedious for me to parse whole large,unnecessary big file to take only few things . So can u just help me out how to modify dspace logging logic so that i can record few events only...

Fitchett, Deborah

unread,
Jun 5, 2018, 5:06:42 PM6/5/18
to prasa...@gmail.com, DSpace Community

dspace/config/log4j.properties has all the settings of what levels things are logged at. It’s probably best to leave the main defaults as they are and just edit the “Other settings” at the bottom for specific services.

 

To do this, take the name of the service you want to change from the INFO/WARN/other message you’re currently getting in your logs:

Eg if the message is “WARN  org.dspace.statistics.util.SpiderDetector @ Not loading pixnat09.whizbang.com

Ø  org.dspace.statistics.util.SpiderDetector

 

Prepend “log4j.logger.”

Ø  log4j.logger.org.dspace.statistics.util.SpiderDetector

 

And add the logging level you want

Ø  So your final setting is: log4j.logger.org.dspace.statistics.util.SpiderDetector=ERROR

 

Deborah

--
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To post to this group, send email to dspace-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.



P Please consider the environment before you print this email.
"The contents of this e-mail (including any attachments) may be confidential and/or subject to copyright. Any unauthorised use, distribution, or copying of the contents is expressly prohibited. If you have received this e-mail in error, please advise the sender by return e-mail or telephone and then delete this e-mail together with all attachments from your system."
Reply all
Reply to author
Forward
0 new messages