[MXS-830] Provide mechanism using which log messages are augmented with the module name. Created: 2016-08-12  Updated: 2016-08-30  Resolved: 2016-08-30

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Task Priority: Major
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Done Votes: 0
Labels: None


 Description   

It's not always clear where a particular logged message is coming from. With log_augmentation the message can be augmented with function information, but most of the time that is far too detailed.

In particular it would be useful to know which plugin has logged a particular message.

Create some mechanism that makes it easy to include that information.



 Comments   
Comment by Johan Wikman [ 2016-08-30 ]

If MXS_MODULE_NAME is defined before log_manager.h is included

#define MXS_MODULE_NAME "xyz"
#include <log_manager.h>

each logged message will be prefixed with the module name.

Generated at Thu Feb 08 04:02:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.