Closed aaronchipper closed 4 years ago
Whilst using this library, I found an interesting bug(?) issue(?) to create log file names.
If I use: pattern, _ := strftime.New("/path/test%Y%m%d.log") I get pattern -> "/path/test20191230.log" Awesome.
pattern, _ := strftime.New("/path/test%Y%m%d.log")
pattern -> "/path/test20191230.log"
But. If I use: pattern, _ := strftime.New("/path/test1%Y%m%d.log") I get pattern -> ".log20191230.log" Not awesome.
pattern, _ := strftime.New("/path/test1%Y%m%d.log")
pattern -> ".log20191230.log"
If I try: pattern, _ := strftime.New("/longer/path/to/see/where/this/leads//test99%Y%m%d.log") I get pattern -> ".log20191230.log" Also not awesome.
pattern, _ := strftime.New("/longer/path/to/see/where/this/leads//test99%Y%m%d.log")
This has only started post PR#6 as far as I can tell, as I have an older forked version that does not have this issue.
Am I going mad?
can confirm. seems like a bug.
@aaronchipper can you please check this PR #10
This issue didn't get automatically closed via #10. oops. Closing
Whilst using this library, I found an interesting bug(?) issue(?) to create log file names.
If I use:
pattern, _ := strftime.New("/path/test%Y%m%d.log")
I getpattern -> "/path/test20191230.log"
Awesome.But. If I use:
pattern, _ := strftime.New("/path/test1%Y%m%d.log")
I getpattern -> ".log20191230.log"
Not awesome.If I try:
pattern, _ := strftime.New("/longer/path/to/see/where/this/leads//test99%Y%m%d.log")
I getpattern -> ".log20191230.log"
Also not awesome.This has only started post PR#6 as far as I can tell, as I have an older forked version that does not have this issue.
Am I going mad?