Skip to content

Should FileLogger close the io stream somehow? #86

@ericphanson

Description

@ericphanson

filehandle = open(path, append ? "a" : "w")
FileLogger(filehandle; kwargs...)

Perhaps atexit(() -> close(io)) would be appropriate?

I have not seen any bugs from the current implementation, but I do worry one could lose logs when always_flush=false.

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