cancel
Showing results for 
Search instead for 
Did you mean: 

Activate logs

irene08
Champ in-the-making
Champ in-the-making
Good Day!

What is the right code for setting a log? In my script there is—–> logger.log(“Irene…Reading the if statement”); and no log files can read it. I checked it in catalina.log, stdout.log.

What file should I need to activate that log?

I'm executing a script and I need to know what is wrong with my script so I really need that logger.


Thank you,
Irene Smiley Happy
6 REPLIES 6

mitpatoliya
Star Collaborator
Star Collaborator
You need to enable the logging class for script under log4j.properties file.
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=info

irene08
Champ in-the-making
Champ in-the-making
You need to enable the logging class for script under log4j.properties file.
log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger=info


Hi! Thanks for your reply. I already enable the class. Then in what file should I see the logs? In catalina.log or stdout.log?


Irene Smiley Happy

mitpatoliya
Star Collaborator
Star Collaborator
stdout.log

irene08
Champ in-the-making
Champ in-the-making
stdout.log


Hi!

I still can't see the logs in stdout.log. Am I missing something?


Thank you,
Irene

valter_85
Champ in-the-making
Champ in-the-making
Hi Irene,

alternatively check the alfresco.log in Windows -> System32.

valter

irene08
Champ in-the-making
Champ in-the-making
Hi Irene,

alternatively check the alfresco.log in Windows -> System32.

valter


Thank you Valter for that new info. I appreciate.

Irene Smiley Happy