Skip to content

Log to file always JSON format #448

@kobi-wan

Description

@kobi-wan

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

I don't know if it's intentionally or not, but FTPgrab always saves the logfile in JSON format. The commandline flag --log-json just changes the output to screen, not to the file.
We just want to simply look at the logfile for errors. But JSON is harder to read. It would be better to have the normal log here for us.

Expected behaviour

If flag --log-json is set, it should log to JSON format, if not, it should log to normal format (for screen and file output),

Actual behaviour

Log to file is always in JSON format, no matter what.

Steps to reproduce

Just let FTPgrab output the log to file with --log-file=filename.log

FTPGrab version

7.11.0

Docker info

n/a

Docker Compose config

Logs

n/a

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions