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

Make logging redirectable #279

Open
jslee02 opened this issue Nov 27, 2014 · 2 comments
Open

Make logging redirectable #279

jslee02 opened this issue Nov 27, 2014 · 2 comments
Labels
help wanted Indicates wanting help on an issue or pull request priority: low no timeline yet
Milestone

Comments

@jslee02
Copy link
Member

jslee02 commented Nov 27, 2014

It would be useful if DART has logger that can print logs to files or console.

@mxgrey
Copy link
Member

mxgrey commented Jul 3, 2015

I think the dumb and easy thing to do is just keep streaming to cout and cerr and trust the user to redirect those streams if they want them redirected to a file. It's hard to think of another solution that doesn't involve either:

(1) Global extern variables for the logger objects, which would be hideous and terrible because global extern variables are hideous and terrible.

(2) Attaching logger object instances to every single DART object, which would be gross and unmanageable, because you'd have to redirect the logger of each object individually, or decide on some master/slave scheme that would probably be difficult to hash out.

@stale
Copy link

stale bot commented Feb 13, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 13, 2018
@stale stale bot removed the stale label Feb 13, 2018
@jslee02 jslee02 added the help wanted Indicates wanting help on an issue or pull request label Mar 24, 2018
@jslee02 jslee02 changed the title Logging Make logging redirectable Jul 12, 2021
@jslee02 jslee02 added this to the DART 7.0.0 milestone Jul 12, 2021
@jslee02 jslee02 modified the milestones: DART 7.0.0, DART 6.13.0 Dec 23, 2021
@jslee02 jslee02 modified the milestones: DART 6.13.0, DART 7.0.0 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Indicates wanting help on an issue or pull request priority: low no timeline yet
Projects
None yet
Development

No branches or pull requests

2 participants