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

implement common error printing function #45

Closed
jeffpc opened this issue Oct 19, 2015 · 0 comments
Closed

implement common error printing function #45

jeffpc opened this issue Oct 19, 2015 · 0 comments

Comments

@jeffpc
Copy link
Owner

jeffpc commented Oct 19, 2015

instead of sprinkling the codebase with printf & fprintf calls, provide the one logging function that does the right thing. This may or may not involve logging to syslog as well. Any objections to calling it cmn_err?

Some useful features this function should have:

  • take a severity argument (debug, info, warning, error, critical, panic)
  • prefix messages with current thread id
  • automatically append a \n
@jeffpc jeffpc changed the title implement ommon error printing function implement common error printing function Oct 20, 2015
@jeffpc jeffpc closed this as completed in c3c2cae Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant