I am learning linux programming and want to do the following. I would like to create a mini-logger that will work like syslog. I want to be able to replace syslog (not in practice but just to understand at every level how things work).
So in my code, I would write
#include "miniLogger.h"
....
....
miniLogger(DEBUG, "sample debug message");
----
----
Now, I am guessing I would need some kind of daemon to listen for incoming messages from my miniLogger and I have no experience with daemons. Can you point me in the right direction or give me a quick overview how messages can move from my API into a configurable destination. I read the man pages but I need more of an overview of how APIs communicate with daemons in general.