Jump to content

Log4J File


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...