GlusterFSは、内部でログ出力用の関数 gf_log をマクロで定義しており、Statedumpを除く全てのログ出力はこの関数を呼び出すことで行われます。 libglusterfs/src/logging.h #define gf_log_eh(fmt...) do { \ FMT_WARN (fmt); \ _gf_log_eh (__FUNCTION__, ##fmt); \ } while (0) GlusterFSのログレベル GlusterFSが定義するログのレベルは10あり、syslogよりもやや細かくなっています。 libglusterfs/src/logging.h typedef enum { GF_LOG_NONE, GF_LOG_EMERG, GF_LOG_ALERT, GF_LOG_CRITICAL, /* fatal errors */ GF_LOG_ERR
![【第2回】GlusterFSのログ収集にFluentdを使う|【技業LOG】技術者が紹介するNTTPCのテクノロジー|【公式】NTTPC](https://cdn-ak-scissors.b.st-hatena.com/image/square/69364dfbb5bce656ea41b94a8493ab9615bb04c1/height=288;version=1;width=512/https%3A%2F%2Fwww.nttpc.co.jp%2Ftechnology%2Fimg%2Fgluster_fs_fluentd%2Fkey_visual.jpg)