Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log file in jboss

 
satish bodas
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I have started the Jboss server

for some time the logs written to file and the console are in sync

after some time the logs are no longer written to file

is there a limit to file size that is causing this ?

is there any configuration I need to do ?


The log file that I am looking at is :: <<JBOSS_HOME>>\server\default\log\SERVER.txt
Thanks ,
~satish
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the size of the file? How are you determining that nothing else is being written to it? The server log uses a DailyRollingFileAppender which by default at midnight closes the existing file, renames it, and opens a new log file.
 
satish bodas
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for the details .

File size is about 1.2 MB


Why i say that nothing is being written to file is because when I invoke some servlet which is deployed on console I see the debug statements written in code

The same are not displayed in this file .

All these activities happen from me starting the server to invoking a servlet which is less than 5 minutes .

Thanks ,
~satish
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Next question - how are you going about viewing the server.log file? Perhaps the mechanism you are using is not refreshing the display of the file.
 
satish bodas
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad - I was being stupid
actually using editplus - and it does refresh the data

However there is some timer / service which is running in jboss server that was repeatedly every 2 /3 minutes writing to log

as a result my trace log was lost in this

my stupidity in not viewing the logs properly

apologies and thanks
~satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic