# Date in file URL or file

**URL:** <https://forum.cloverdx.com/t/date-in-file-url-or-file/740>\
**Category:** CloverDX Platform\
**Created:** [August 27, 2010, 12:00am UTC](https://forum.cloverdx.com/t/date-in-file-url-or-file/740 "2010-08-27T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![berniedurfee](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@berniedurfee](https://forum.cloverdx.com/u/berniedurfee)\
**Post date:** [August 27, 2010, 12:00am UTC](https://forum.cloverdx.com/t/date-in-file-url-or-file/740/1 "2010-08-27T00:00:00Z")

</div>

I am looking to write out log files that contain listing of rows at various points in my flow, initial extract, filtered, rejected, etc.

What I want to do is ideally write out one log file per run, with the date in the name of the log file. Is this possible?

If not, I’d like to write out the date into the log file, so I know the date of the run that is associated with the rows.

Is this possible with the StructuredDataWriter?

Thanks…

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [September 3, 2010, 8:36am UTC](https://forum.cloverdx.com/t/date-in-file-url-or-file/740/2 "2010-09-03T08:36:12Z")

</div>

Hello Bernie,  
your aim can be achieved with partition feature, which is supported with most of the Writers (see [Partitioning Output into Different Output Files](http://www.cloveretl.com/documentation/UserGuide/topic/com.cloveretl.gui.docs/docs/partitioning-output-into-different-output-files.html)). If your data contains current time stamp (if not, you can add it, when reading input data with _reader\_timestamp_ auto filling function), let say in field _current\_date_, your Writer should have following settings:

- fileURL=“${DATAOUT\_DIR}/output\_#.log”

- partitionFileTag=“keyNameFileTag”

- partitionKey=“current\_date”

When using StructerWriter, you specify if you want the _current\_date_ field in output file in _mask_ attribute; when using UniversalDataWriter, you can specify the filed in _excludeFields_ attribute, if you don’t want to store the date in output file.
