Version: v0.7.1 - Beta.  We welcome contributors & feedback.

File.log

File.log($stringOrData, $logFileName = 'app.log') -> false

Description

Append a string to a file with an automatic timestamp.

If a Map or List is passed in, it will be stringified with Json.format.

The $logFileName is relative to the data/files directory.

File.log('Something interesting happened.', 'events.log')

See Also