Postgres-StORM icon indicating copy to clipboard operation
Postgres-StORM copied to clipboard

Replace hardcoded "./StORMlog.txt" with custom path

Open neoneye opened this issue 7 years ago • 1 comments

The logFile parameter is set to "./StORMlog.txt", several places. Looks like this:

if StORMdebug { LogFile.info("Error msg: \(errorMsg)", logFile: "./StORMlog.txt") }
if StORMdebug { LogFile.info("Postgres conn state: ok", logFile: "./StORMlog.txt") }
LogFile.error("Error msg: \(error)", logFile: "./StORMlog.txt")

This polutes the current working directory. I prefer logfiles gets outputted to the log dir.

Perhaps use a shared logging class.

Same issue with Mysql + Sqlite repositories.

neoneye avatar Jun 10 '18 12:06 neoneye

+1 👍

Zollerboy1 avatar Oct 09 '18 19:10 Zollerboy1