-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use a mature logging library #1344
Comments
IMHO not a good idea to pull in C++ things, unless they are completely standalone, i.e. do not require libstdc++, etc. Aren't there any pure C alternatives? |
They are completely standalone.
I've only used these two C++ logging libraries. So let's discuss it here.
- pure C:
- log4c: But it doesn't seem to be maintained.
- [zlog](https://github.com/HardySimpson/zlog)
Everyone knows which logging libraries?
At 2023-12-07 14:31:37, "Jens Elkner" ***@***.***> wrote:
IMHO not a good idea to pull in C++ things, unless they are completely standalone, i.e. do not require libstdc++, etc. Aren't there any pure C alternatives?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
OK, just checked Ubuntu 20.04 because Ubuntu is IMHO a late adopter, i.e. if a certain package/version is there, probably all other distrOS have it, too.
In my java life I used log4j in 2000+ and later (~2006) slf4j + logback. Yes, great. But not sure, whether it is a little bit too much overhead. Anyway, whatever you choose, please make sure, that we can use the version/package the vendor ships for the related distros.
I'm not coding in C++ at all, so can't really contribute much to this. Never heard about it. Looks like that there is no vendor package for Ubuntu 20.04+.
|
I looked at the source code, log4cplus provides a C interface 😄 logging-log4cxx does not provide a C interface 😢
Stability and performance have been verified in practice. |
@coturn @eakraly @ggarber
|
Use log4cplus #1351 |
Is there a way to set |
@pwilczynskiclearcode |
@eakraly |
@pwilczynskiclearcode I've running an instance since mid of December: the main log contains 1-2K lines per week, only - and these are just the connection logs like
|
The current logs do not meet the requirements. Continuing to reinvent the wheel is a waste of resources. It is recommended to use a mature logging library. For example:
Although they are C++ libraries, they are easy to apply to this project. Only the macro needs to be rewritten TURN_LOG_FUNC
The text was updated successfully, but these errors were encountered: