[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Calls to fluid_log()
From: |
Tom M. |
Subject: |
Re: [fluid-dev] Calls to fluid_log() |
Date: |
Tue, 9 Oct 2018 06:46:58 +0200 |
> In my opinion, it won't be a bad idea to keep the FLUID_LOG macro everywhere,
> because it allows to remove the log messages from the sources quite easily.
> The user can decide to use an empty macro or an option can be added to cmake,
> with something like an ENABLE_LOGGING macro inside config.h, in a similar
> manner it has been already done for profiling.
Why? If logging is not appreciated, one should disable it via the API,
rather than fiddling with the source code:
fluid_set_log_function(FLUID_DBG, NULL, NULL);
fluid_set_log_function(FLUID_WARN, NULL, NULL);
etc...
Tom