Skip to content

How to log when the program close itself at launch? #244

Answered by woelper
Unknown78 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! First of all thanks for spotting this and helping to improve Oculante!

Oculante logs to stdout by default, so if you start the program in a terminal, you should see something.

I am using env_logger in oculante, which sets log levels based on the RUST_LOG enviroment variable. There is more background info here:
https://docs.rs/env_logger/latest/env_logger/

basically, you would have to set RUST_LOG to debug in the terminal and then start Oculante - for example set RUST_LOG=debug and then oculante.exe. Please let me know if I can help of if you find out more!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Unknown78
Comment options

@woelper
Comment options

Answer selected by Unknown78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants