Skip to content

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

Open
chiefnoah wants to merge 1 commit into
rxi:masterfrom
chiefnoah:master
Open

Renames log level enum values to not conflict with syslog#17
chiefnoah wants to merge 1 commit into
rxi:masterfrom
chiefnoah:master

Conversation

@chiefnoah

Copy link
Copy Markdown

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

detly commented Aug 30, 2020

Copy link
Copy Markdown

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
Copy Markdown
Author

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

@tachang

tachang commented Jan 1, 2021

Copy link
Copy Markdown

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

@chiefnoah

Copy link
Copy Markdown
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.

@Balth-D

Balth-D commented Aug 25, 2023

Copy link
Copy Markdown

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