You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Phani Madgula <ph...@gmail.com> on 2006/01/11 10:41:30 UTC

Question on Server Log settings

Hi

I have a question on Server log settings.

Documentation says about Server Log Viewer as follows.

   "The File pull-down menu allows you to select the log file to view. The
logs listed in this pull-down menu are ruled by the
   Configuration File (server-log4j.properties by default) specified in the
Log Manager portlet."
   Suppose I have maximum file size as 300KB. When server log reaches the
limit it will create a new log file.
   But I am not able to select any previous log files through Server Log
Viewer Portlet to view the log messages in it.
   The pull down menu displays only one log file which is being currently
written to.

   does Server Log viewer portlet display all the log files created ?

Thanks
phani

Re: Question on Server Log settings

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
I think the intent of the drop-down was to show "logs" not "log files"
(similar to what the web access log viewer does).  So if you had your
Log4j config writing 4 different log files (with different categories
or levels or whatever) then it would show 4 entries.  I don't think we
thought about rolling logs.

Do you guys think it would be better to show all the "rolled over" log
files in the drop-down, or have it so that if you pick "geronimo.log"
it would potentially search all the "rolled over" files as well?  I'd
prefer the latter (short drop-down but search rolled over ones too). 
In any case, we should definitely consider adding a feature to search
by date/time.  :)

Thanks,
    Aaron

On 1/11/06, Joe Bohn <jo...@earthlink.net> wrote:
> The server log viewer does not even provide the option to search by
> dates.  From looking at the code we get a reference to the system log
> and then query the log to get all of the files.  For some reason this
> appears to always return just the current file.  This may be an error in
> the Log4JService.
>
> Of course, this is to get things working the way that it seems they were
> intended to work (with the drop-down list of files).  We can also
> consider making this more functional as with the web access log viewer.
>
> I think that you should open a JIRA on the drop-down failure to display
> the multiple log files.  It appears this is broken.
>
> Joe
>
> Aaron Mulder wrote:
> > I think I remember that for the web access logs if you search by date
> > range it will look into the other files produced for the same log.  It
> > may be that the server log viewer doesn't do this.  If not, I'd have
> > to think about whether we should try to search old logs automatically
> > or just show them all in the drop-down.
> >
> > Aaron
> >
> > On 1/11/06, Phani Madgula <ph...@gmail.com> wrote:
> >
> >>Hi
> >>
> >>I have a question on Server log settings.
> >>
> >>Documentation says about Server Log Viewer as follows.
> >>
> >>   "The File pull-down menu allows you to select the log file to view. The
> >>logs listed in this pull-down menu are ruled by the
> >>   Configuration File (server-log4j.properties by default) specified in the
> >>Log Manager portlet."
> >>   Suppose I have maximum file size as 300KB. When server log reaches the
> >>limit it will create a new log file.
> >>   But I am not able to select any previous log files through Server Log
> >>Viewer Portlet to view the log messages in it.
> >>   The pull down menu displays only one log file which is being currently
> >>written to.
> >>
> >>   does Server Log viewer portlet display all the log files created ?
> >>
> >>Thanks
> >>phani
> >
> >
> >
>
> --
> Joe Bohn
> joe.bohn at earthlink.net
>
> "He is no fool who gives what he cannot keep, to gain what he cannot
> lose."   -- Jim Elliot
>

Re: Question on Server Log settings

Posted by Joe Bohn <jo...@earthlink.net>.
The server log viewer does not even provide the option to search by 
dates.  From looking at the code we get a reference to the system log 
and then query the log to get all of the files.  For some reason this 
appears to always return just the current file.  This may be an error in 
the Log4JService.

Of course, this is to get things working the way that it seems they were 
intended to work (with the drop-down list of files).  We can also 
consider making this more functional as with the web access log viewer.

I think that you should open a JIRA on the drop-down failure to display 
the multiple log files.  It appears this is broken.

Joe

Aaron Mulder wrote:
> I think I remember that for the web access logs if you search by date
> range it will look into the other files produced for the same log.  It
> may be that the server log viewer doesn't do this.  If not, I'd have
> to think about whether we should try to search old logs automatically
> or just show them all in the drop-down.
> 
> Aaron
> 
> On 1/11/06, Phani Madgula <ph...@gmail.com> wrote:
> 
>>Hi
>>
>>I have a question on Server log settings.
>>
>>Documentation says about Server Log Viewer as follows.
>>
>>   "The File pull-down menu allows you to select the log file to view. The
>>logs listed in this pull-down menu are ruled by the
>>   Configuration File (server-log4j.properties by default) specified in the
>>Log Manager portlet."
>>   Suppose I have maximum file size as 300KB. When server log reaches the
>>limit it will create a new log file.
>>   But I am not able to select any previous log files through Server Log
>>Viewer Portlet to view the log messages in it.
>>   The pull down menu displays only one log file which is being currently
>>written to.
>>
>>   does Server Log viewer portlet display all the log files created ?
>>
>>Thanks
>>phani
> 
> 
> 

-- 
Joe Bohn
joe.bohn at earthlink.net

"He is no fool who gives what he cannot keep, to gain what he cannot 
lose."   -- Jim Elliot

Re: Question on Server Log settings

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
I think I remember that for the web access logs if you search by date
range it will look into the other files produced for the same log.  It
may be that the server log viewer doesn't do this.  If not, I'd have
to think about whether we should try to search old logs automatically
or just show them all in the drop-down.

Aaron

On 1/11/06, Phani Madgula <ph...@gmail.com> wrote:
> Hi
>
> I have a question on Server log settings.
>
> Documentation says about Server Log Viewer as follows.
>
>    "The File pull-down menu allows you to select the log file to view. The
> logs listed in this pull-down menu are ruled by the
>    Configuration File (server-log4j.properties by default) specified in the
> Log Manager portlet."
>    Suppose I have maximum file size as 300KB. When server log reaches the
> limit it will create a new log file.
>    But I am not able to select any previous log files through Server Log
> Viewer Portlet to view the log messages in it.
>    The pull down menu displays only one log file which is being currently
> written to.
>
>    does Server Log viewer portlet display all the log files created ?
>
> Thanks
> phani