Re: Get timestamp from logged line

2020-06-26 Thread Ralph Goers



> On Jun 26, 2020, at 10:01 AM, Joan ventusproxy 
>  wrote:
> 
> Hello,
> 
> �
> 
> I’m using the following pattern to log lines:
> 
> %m%d{-MM-dd HH:mm:ss.SSS}%n
> 
> �
> 
> And writing the line with: this.accessLog.info(variable)
> 
> �
> 
> I was wondering if there is any chance to get the timestamp printed in the 
> line (%d{-MM-dd HH:mm:ss.SSS}) after writing it to the file with the 
> ‘info’ method.

I don’t think I understand what you want. 

Ralph




-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Get timestamp from logged line

2020-06-26 Thread Joan ventusproxy
Hello,

 �

I’m using the following pattern to log lines:

%m%d{-MM-dd HH:mm:ss.SSS}%n

 �

And writing the line with: this.accessLog.info(variable)

 �

I was wondering if there is any chance to get the timestamp printed in the line 
(%d{-MM-dd HH:mm:ss.SSS}) after writing it to the file with the ‘info’ 
method.

 �

Thanks,

 �

Joan.