softlab Posted February 2, 2016 Posted February 2, 2016 Hi. I'm softlab on Johnny. My web application uses log4j to trace errors and writes them in a subfolder of the application. In the application I have a function that reads that file, but it gets always an error. How can I read that log file? Thanks Quote
wolstech Posted February 2, 2016 Posted February 2, 2016 Check the permissions on the folder. For testing, you can CHMOD the folder to 777 using the FTP client. If you cannot see the folder (if it's inside a .war, you might not be able to), see if you can set the program to write to a log in a folder that you can access (e.g. make a folder like /home/softlab/javalogs, then have the log written there and set the permissions on that folder). If the permissions already are this way, the problem is broken code in your application, as we don't actively block the reading of any files within your account. Of course, java wars may work entirely differently than other things in your account. I'm not terribly familiar with java deployments. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.