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

Renames log level enum values to not conflict with syslog #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chiefnoah
Copy link

LOG_DEBUG conflicts with another enum definition in syslog.h,
which causes compilation errors when included. This renames
the enum values to be prefixed with LOGC instead of LOG to
avoid this.

This addresses #3.

@detly
Copy link

detly commented Aug 30, 2020

Ah I was just about to open my own PR for this for the same reason! Has this been forgotten about or does something more need to be done?

LOG_DEBUG conflicts with another enum definition in syslog.h,
which causes compilation errors when included. This renames
the enum values to be prefixed with LOGC instead of LOG to
avoid this
@chiefnoah
Copy link
Author

I haven't received any feedback, so not sure. I rebased my branch so feel free to use my fork

@tachang
Copy link

tachang commented Jan 1, 2021

@chiefnoah Thanks for doing this. Did you also have code to log to syslog?

@chiefnoah
Copy link
Author

@chiefnoah Thanks for doing this. Did you also have code to log to syslog?

It's been awhile, but I believe I was trying to compile something with a library that used syslog, not use it directly myself.

@BDeliers
Copy link

Hello, I found your pull-request useful and merged it to my fork ! Feel free to propose changes, thanks for your contribution 😃
https://github.com/BDeliers/log.c

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

Successfully merging this pull request may close these issues.

4 participants