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

Porting for a pure C implementation #236

Open
Dinesh-Ramakrishnan opened this issue Mar 22, 2023 · 2 comments
Open

Porting for a pure C implementation #236

Dinesh-Ramakrishnan opened this issue Mar 22, 2023 · 2 comments

Comments

@Dinesh-Ramakrishnan
Copy link

Hi @emilk ,

Thank you for this wonderful and super useful library.
I have a pure C application in which I would like to use this logging library. Do we have any C language port available for this library?

If not, please provide me some guidelines, I am interested to port this to pure C library.

@BullyWiiPlaza
Copy link

I don't think so, man. This is a C++ library. You cannot simply provide a C implementation without rewriting it almost entirely. C++ streams won't be possible and so on. You're better off finding another logging library specifically for C.

@virtuosonic
Copy link

Rewritting any mature software will always result in an inmature and maybe buggy software. Making a wrapper would be complicated because of macros usage, some features depend on C++ RAII. Have you tried compiling your C application with a C++ compiler, maybe that is less work

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

3 participants