aspose file tools*
The moose likes JBoss/WildFly and the fly likes log file in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "log file in jboss" Watch "log file in jboss" New topic
Author

log file in jboss

satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
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

Joined: May 14, 2008
Posts: 5836
    
    7

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.


JBoss In Action
satish bodas
Ranch Hand

Joined: Jun 19, 2008
Posts: 116
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

Joined: May 14, 2008
Posts: 5836
    
    7

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

Joined: Jun 19, 2008
Posts: 116
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: log file in jboss