Skip to content

V2 - runtime method for getting mode (dev vs production) #1126

@BillBuilt

Description

@BillBuilt

I'd like to use the standard logger in dev mode and the file logger in production but I haven't found a way to determine the currently running mode. Using build tags was proposed as the only real method to achieve this currently but a runtime method that would return the value would be ideal. I am creating this ticket as requested in the discussion listed below. Thanks!

Originally posted by @BillBuilt in #828 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions