discord_get_logconf - Get client’s logging internals#

struct logconf *discord_get_logconf(struct discord *client)#

Retrieve client’s logging module for configuration purposes.

See also

logconf_setup(), logconf_set_quiet(), logconf_set_level()

Parameters:
Returns:

the client’s logging module

Example#

struct discord *client = discord_init(BOT_TOKEN);
struct logconf *conf = discord_get_logconf(client);

logconf_set_quiet(conf, false); // write logging to console
logconf_set_level(conf, LOG_INFO);
logconf_info(conf, "Logging from the DISCORD module");

discord_run(client);

discord_cleanup(client);