I am working on one of the glib based applications. I am not able to find a way to have the file name, line number, function name as log prefix. I am just getting logs in below format:
(myApp:19627): myApp-DEBUG: 10:01:35.212: IP packet received on interface "enp0s20f0u1c2": (myApp:19627): myApp-DEBUG: 10:01:35.212: interface MAC: 00:0e:09:86:ed:c3 (myApp:19627): myApp-DEBUG: 10:01:35.212: src MAC: ec:8e:b5:d6:42:14 (myApp:19627): myApp-DEBUG: 10:01:35.212: dst MAC: 00:0e:09:86:ed:c3 (myApp:19627): myApp-INFO: 10:01:35.212: IPV4 packet:*
I have already enabled below env variables:
G_MESSAGES_PREFIXED=all
G_MESSAGES_DEBUG=all