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

Simple mechanism to redirect logfile to std::cerr #888

Open
ykempf opened this issue Jan 30, 2024 · 0 comments
Open

Simple mechanism to redirect logfile to std::cerr #888

ykempf opened this issue Jan 30, 2024 · 0 comments

Comments

@ykempf
Copy link
Contributor

ykempf commented Jan 30, 2024

Every now and then when cerr-debugging I end up either crossing my eyes between logfile.txt and the slurm output file, or manually moving logfile output to cerr so I have a consistent chronological output sequence in one file. Using logfile for debugging is not practical e.g. when adding cerr lines in libraries.

It would be convenient if a cfg or compilation/preprocessor flag allowed to easily switch over all logfile output to cerr.

Posting here as I'm definitely not implementing this today, but if someone has a solution and posts it here, I or they can push it next time it gets used.

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

1 participant