Re: [PATCH 4/5] log: Introduce function pointer to handle different log backends

2017-06-21 Thread Aleksander Morgado
On 21/06/17 12:58, Torsten Hilbrich wrote: > This allows for easier additions of other logging mechanism. > > Using the syslog loglevel as parameter because we need to be able to > map the MMLogLevel and the GLogLevelFlags to a common representation > when using the log_backend in _mm_log and

[PATCH 4/5] log: Introduce function pointer to handle different log backends

2017-06-21 Thread Torsten Hilbrich
This allows for easier additions of other logging mechanism. Using the syslog loglevel as parameter because we need to be able to map the MMLogLevel and the GLogLevelFlags to a common representation when using the log_backend in _mm_log and log_handler. The syslog level is more suitable because

[PATCH 4/5] log: Introduce function pointer to handle different log backends

2017-06-21 Thread Torsten Hilbrich
This allows for easier additions of other logging mechanism. Using the syslog loglevel as parameter because we need to be able to map the MMLogLevel and the GLogLevelFlags to a common representation when using the log_backend in _mm_log and log_handler. The syslog level is more suitable because

Re: [PATCH 4/5] log: Introduce function pointer to handle different log backends

2017-05-29 Thread Aleksander Morgado
Hey Torsten, See comments below. On 22/05/17 07:49, Torsten Hilbrich wrote: > This allows for easier additions of other logging mechanism. > --- > src/mm-log.c | 53 ++--- > 1 file changed, 34 insertions(+), 19 deletions(-) > > diff --git

[PATCH 4/5] log: Introduce function pointer to handle different log backends

2017-05-21 Thread Torsten Hilbrich
This allows for easier additions of other logging mechanism. --- src/mm-log.c | 53 ++--- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/src/mm-log.c b/src/mm-log.c index bedf88f..6578d68 100644 --- a/src/mm-log.c +++ b/src/mm-log.c