Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not log in release mode ? #102

Open
zKidor opened this issue Jul 22, 2021 · 4 comments
Open

Can not log in release mode ? #102

zKidor opened this issue Jul 22, 2021 · 4 comments

Comments

@zKidor
Copy link

zKidor commented Jul 22, 2021

Hi,

In release mode , the logger can not log anything , the file is empty. In debug mode ,it can log into file .
Is there something wrong with my usage ? How can I fix this?
Thank you !

logger init:

logger = Logger(
        printer: PrettyPrinter(
            methodCount: 2,
            // number of method calls to be displayed
            errorMethodCount: 8,
            // number of method calls if stacktrace is provided
            lineLength: 120,
            // width of the output
            colors: true,
            // Colorful log messages
            printEmojis: true,
            // Print an emoji for each log message
            printTime: true // Should each log print contain a timestamp
            ),
        output: FileOutput(
            file: logFile));

usage:

logger.d('msg');
@Tobivaria
Copy link

Logger is disabled in production, see:
#48 (comment)

@zKidor
Copy link
Author

zKidor commented Jul 23, 2021

Logger is disabled in production, see:
#48 (comment)

Got it!
Thank you so much

@CyberWake
Copy link

@Tobivaria How can I make it visible in release mode.

@dgurudot
Copy link

@Tobivaria How can I make it visible in release mode.

filter: ProductionFilter()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants