create

Creates a writer that logs to file. The file is created if it doesn't exist and overwritten if it does.

Return

A new FateLogWriter instance

Parameters

file

The file to write the log to

Throws

if the file cannot be created or opened for writing


fun create(filePath: String): FateLogWriter

Creates a writer that logs to the file at filePath, as create does for a File.

Return

A new FateLogWriter instance

Parameters

filePath

The path to the file to write the log to

Throws

if the file cannot be created or opened for writing