This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Help with log4j viewer

 
Ranch Hand
Posts: 64
Oracle Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody, I'm facing a problem with my application.

I programmed, deploy and run a webservice in my tomcat server.

I programmed, deploy and run my client as well.

My last implementation was with log4j to include logging system to my application. Everything works fine, I use my own XML Layout and it saves a log for every day in xml format. e.g:

/usr/share/tomcat/logs/log.xml

But the problem is that I want to retrieve information with a free log4j viewer, but I'm not sure if it could be possible because the logs files are located in the server and they're not stored locally.
I tried with chainsaw (Webstart) and I managed to read the logs locally, but no idea how to read them from a server.

Then I spent 1 whole day implementing a stand-alone application to read my logs. I also managed to read it locally, but now the problem is the same, how to read it from the server.

I even managed to test by uploading a file to a remote server and use my application to read it with the URL Class and URLConnection.

One thing is that I need to use a key to access the server (linux server with apache tomcat 6).

I've already posted something related to this, but now, I'm adding more information here.

Hope somebody could help me please, I'll be very grateful

Thanks in advance....
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use OtrosLogViewer. It supports SSH key authorization: http://code.google.com/p/otroslogviewer/wiki/SftpAuthPubKey. You can browse remote file systems (ssh/sftp, samba).
 
Onion rings are vegetable donuts. Taste this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!