7

I'm using SDL Tridion 2011 SP1 and can't enable the log for Business Connector. I have enabled it in \Tridion\bc\conf\log4j.properties, but for some reason file is not created. Here's my log4j.properties:

# Set root category priority to ERROR and its only appender to A1.
log4j.rootCategory=ALL
log4j.category.com.tridion.integrations.bc=ALL

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=ALL
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
#log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=c:\log\BusinessConnector.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=ALL
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout

# Full pattern
#log4j.appender.LOGFILE.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %-30.30c{2} %x - %m %n
# Debug pattern
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Any ideas?

Update: Crashing means that process is crashing There are no any exceptions in the event log I have a Visual Studio application and it can connect to BC. It's not that BC is broken completely. Just once in a while it stops

  • Why are you using the Business Connector when it has been deprecated? The Business Connector has been replaced with the Core Service. You should really be using the Core Service by now. – SteveW Feb 20 '13 at 11:00
  • What version of Java are you using and is msvcr71.dll accessible from the system path? bugs.sun.com/bugdatabase/view_bug.do?bug_id=6509291 – SteveW Feb 20 '13 at 13:23
  • I'm using Java 7 and is msvcr71.dll accessible from the system path. Im interested in the logging part, not debugging part :) – Andrey Marchuk Feb 20 '13 at 13:26
  • Is log4j-core.jar in your Classpath? – SteveW Feb 20 '13 at 13:42
  • Java 7 is not supported with Tridion 2011. Might not be related, but I saw weird stuff happening with this, like transport failing to start. – Nuno Linhares Feb 20 '13 at 15:16
12

Try changing:

log4j.category.com.tridion.integrations.bc=ALL

to

log4j.category.com.tridion.integrations.bc=ALL,LOGFILE

| improve this answer | |
  • That did it for me, great stuff Amit – Nuno Linhares Feb 21 '13 at 18:08
  • Incredible! Thanks, one more thing - path should be of such format: c:\\log\\BusinessConnector.log – Andrey Marchuk Feb 22 '13 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.