Hmm.  As the log files will alpha-sort by date, something like vim `ls
~/localhost.log* | tail -1` might do it.  Beware - my shell script is rusty
at best.

- Peter

On 19 April 2010 15:29, laredotornado <laredotorn...@gmail.com> wrote:

>
> Hi,
>
> I'm using Tomcat 6.0.26 on Mac 10.6.3.  Currently, in my
> $CATALINA_HOME/logs
> directory, Tomcat produces a localhost*log file with the date in the file
> name for each day, for example -- localhost.2010-04-19.  Is there a way to
> get Tomcat to generate simply "localhost.log" for whatever day today is?
>  If
> not, does anyone know a shell short cut where I can just type in something
> like "vim ~/localhost.log" and see the most current log without having to
> specify today's date?
>
> Thanks, - Dave
> --
> View this message in context:
> http://old.nabble.com/Way-to-generate-a-%22localhost.log%22-instead-of-%22localhost-4-20-2010.log%22--tp28287685p28287685.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to