Skip to content

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

Description

@neoneye

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions