Unable to create sub directories for logwriter dynamically

13 views
Skip to first unread message

Aniket Ajagaonkar

unread,
Apr 11, 2016, 7:42:45 PM4/11/16
to Log.io
Hello,

I am trying to write the output of the job to the log files one for each day.
I have a statically defined folder location of /static/path/to/the/directory.

Now for each day I need to create a subdirectory with name as the date 

eg./static/path/to/the/directory/20160411/actual_log_fileseq00000, /static/path/to/the/directory/20160411/actual_log_fileseq00001 etc 
then /static/path/to/the/directory/20160412 and so on.

How can I create a folder dynamically for the logwriter?

Thanks!
Aniket

Reply all
Reply to author
Forward
0 new messages