Parametrizing file names with start date of process

2018-02-24 Thread Laurent Hasson
Hello, I'd like to parametrize my log file names with the start date of the process. This makes it easier for us to see after the facts in the logs if a server was restarted etc... The approach I took was the following: C:\CAPSICO\_Stand_Alone_Runtime_\logs\ %d{-MM-dd}

Re: Parametrizing file names with start date of process

2018-02-24 Thread Ralph Goers
First, you are referring to the variable as %{now} when it should be ${now}. Second, all that is going to do is replace ${now} in the file name with %d{-MM-dd} which will then be resolved when the file is created. I would suggest defining now as ${date:-MM-dd} Ralph > On Feb 24, 2018

RE: Parametrizing file names with start date of process

2018-02-24 Thread Laurent Hasson
Oh yes, apologies... I did some edits to simplify my config file and accidentally changed $ to %. It is correct in the file. I tried ${date:-MM-dd} and it works. I'll read up on what "date:" is. Thank you, Laurent -Original Message- From: Ralph Goers [mailto:ralph.go...@dslextreme.

Re: Parametrizing file names with start date of process

2018-02-24 Thread Ralph Goers
${xxx:nnn) is the general format for Lookups. ${date:} is the date Lookup. It returns the current date, which is exactly what you wanted. Ralph > On Feb 24, 2018, at 5:05 PM, Laurent Hasson wrote: > > Oh yes, apologies... I did some edits to simplify my config file and > accidentally changed