[
https://issues.apache.org/jira/browse/IGNITE-23137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882023#comment-17882023
]
Vadim Pakhnushev commented on IGNITE-23137:
-------------------------------------------
We have log rotation configured so I think we should simply drop adding
timestamps to filenames.
> vars.bat is different from vars.env
> -----------------------------------
>
> Key: IGNITE-23137
> URL: https://issues.apache.org/jira/browse/IGNITE-23137
> Project: Ignite
> Issue Type: Bug
> Components: general
> Affects Versions: 3.0
> Reporter: Igor
> Priority: Major
> Labels: ignite-3
>
> Linux environment setup (vars.env) contains the next string:
> {code:java}
> JVM_GC_LOG_NAME="gc.log.$(date -u +%Y%m%d_%H%M%S)"
> {code}
> While Windows environment setup (vars.bat) has the next:
> {code:java}
> set JVM_GC_LOG_NAME=gc.log
> {code}
> As result the *`gc.log` has different names in different platforms.*
> I would suggest to use something like this instead:
> {code:java}
> for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd__HHmmss"') do
> set datetime=%%a
> set JVM_GC_LOG_NAME="gc.log.%datetime%"
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)