Previously, it was not possible to create FileSpec for creating log file only with date in its name because if basename was set to an empty string then there was an underscore before date (_2024-01-14_00-43-30.log). Now if basename is an empty string then there is no underscore at the beginning (2024-01-14_00-43-30.log). Also added suppress_basename() function to FileSpec that just sets basename to an empty string.
Previously, it was not possible to create
FileSpec
for creating log file only with date in its name because ifbasename
was set to an empty string then there was an underscore before date (_2024-01-14_00-43-30.log
). Now ifbasename
is an empty string then there is no underscore at the beginning (2024-01-14_00-43-30.log
). Also addedsuppress_basename()
function toFileSpec
that just setsbasename
to an empty string.Now, this:
will give you file path:
logs/2024-01-14_00-43-30.log
.Previously only this was possible:
but it was giving:
logs/_2024-01-14_00-43-30.log
.