spring-cloud-deployer-local icon indicating copy to clipboard operation
spring-cloud-deployer-local copied to clipboard

How to customize job results log folder name.

Open hae-gun opened this issue 3 years ago • 0 comments

I found the source below while looking for a solution to an issue I wrote in the past.

my issue #5169

Is there any particular reason for naming the folders in nanotime in that source?

https://github.com/spring-cloud/spring-cloud-deployer-local/blob/f7e90a107d387a0bbbc7a0818189b11d2c023bb0/spring-cloud-deployer-local/src/main/java/org/springframework/cloud/deployer/spi/local/LocalTaskLauncher.java#L249

If there is no special reason, could you change the name of the folder to the following?

<task_name-start_date_time>

The reason why I want to do this is because I want to manage the log files separately outside of SCDF.

Also, when a folder is formed in the above format, when a composed task is performed, there is a disadvantage in that logs for the entire composed task cannot be viewed at once, which is very inconvenient.

My opinion is as follows.

  1. When the composed task is executed for the first time, a folder is created with the <name + start_time> of the composed task.
  2. Subsequent tasks create log files in that folder.

Could the above be possible?

hae-gun avatar Dec 29 '22 08:12 hae-gun