Replies: 1 comment 2 replies
-
Hey, yes with the above you are passing already formatted messages. There is another problem when not using macros for logging which is that the language will always evaluate the arguments for the function regardless of the log level used. Would it be possible to setup/start the backend as part of the framework and then allow the plugins to call the log macros directly ? Or are you wrapping the whole framework in a C wrapper and require all the plugins to only use C ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a mid-sized framework that employs a plugin system.
There is a clear c interface between the framework and plugins.
Currently, I create a logging interface like
The plugin calls the method to pass the message to the framework, which uses quill to do the actual logging.
However, this approach seems suboptimal because the plugin is required to do the formatting and there is char array copying involved in quill.
Any suggestions on this?
Beta Was this translation helpful? Give feedback.
All reactions