TS 6.7.2I am trying to use TS log4j at,iw-home\local\config\lib\content_center\customer_src\log4j.xml
to do some custom logging for my java code. Seems it just creates the log file I mention in log4j but do not write any log statements (debug/info) inside it. (the custom log file gets created but remains size 0 ).I am using Apache log4j.Logger for logging.The same log4j configuration just works very much alright on my local machine writting desired logs in custom log file.Anybody knows if I need to tweak anything there?Thanks
I believe that should be:iw-home\local\config\lib\conent_center\customer_src\etc\conf\customer\log4j.xmlWithout seeing how you configured your log4j.xml (and verifying that it's where TS expects it to be) and knowing that you did a make_toolkit.ipl (successfully) and how your code is setting up its logger relative to how you configured your log4j.xml ... well, it's kind of difficult to figure out what's wrong.
Hi,your log4j config looks ok, specially since the log file is actually created.But I have my doubts on the logger.name that you use. Is you class actually located under com.teamsite.workflow?If so, change the name to like 'com.teamsite' or 'com'. With this all java-classes that start with com should write to your logfile.(For quicker testing you can modify your log4j under {servlet}/WEB-INF\conf\customer and just bounch the servlet)
Hi,Not sure whether your facing the similar issue as mine, can you please go through the following thread,http://devnet.interwoven.com/forums_vb/showthread.php?t=30820&forumid=11
yup very simillar issue.. but the problem is I want to use the custom log file & not to refer servletd_out log.
I am using Apache [size=2]log4j.Logger for logging.