There is a requirement to create a custom log file whenever I execute the SFTP service for any partner. The custom log will have all the activity of the sFTP process.
Can anybody guide me how to create a custom log file at service level.
Refer to the log4J logging Documentation. Use the jar file provided by Apache and then write Java services to log (INFO,ERROR,DEBUG etc levels) the messages. Use the log4j config file to configure the write path (can be a file or a database).
Sorry for follow up this old thread.
I have the same requirement. I’m trying to create custom log using log4j.
I tried to create a java service then use log4j as my application logging.
But I can’t import “org.apache.log4j.*” in my service.
I’ve already copy log4j.jar in packages\logging\code\jars
and log4j.properties in pub folder.
My problem is I can’t import log4j in my java service.
this Issue is resolved.
solution :
I try to copy log4j.jar in packages\logging\code\jars
and build my package, and it works.
Now, I’m trying to use Mark’s logging package.
Write a log4j log message according to level severity and write message by invoking pub.flow.debuglog.
My question is :
how can I write the log message in mycostum.log not in server.log ?
please help.
I’m trying to find this “Mark’s log4j” package. I’m aware that it was available in the wmusers, but I’m having a hard time to find it in the TechCommunity site.
Can you share me the ink to download it?