|
gbase
|
Example program demonstrating how to derive from GBase and use logging.
More...
#include "gbase.h"
Go to the source code of this file.
Data Structures | |
| class | g1 |
| class | g2 |
Functions | |
| GOptions | defineOptions () |
| int | main (int argc, char *argv[]) |
Variables | |
| constexpr const char * | G1_LOGGER = "hello1" |
| constexpr const char * | G2_LOGGER = "hello2" |
This example shows two common usage patterns: 1) A derived type that constructs its own logger via GOptions. 2) A derived type that reuses an already constructed shared GLogger .
The focus is on illustrating:
log member from GBase .info, warning, debug) might be used.Notes:
Definition in file test_gbase.cc.
| GOptions defineOptions | ( | ) |
Definition at line 66 of file test_gbase.cc.
| int main | ( | int | argc, |
| char * | argv[] ) |
Definition at line 76 of file test_gbase.cc.
|
constexpr |
Definition at line 23 of file test_gbase.cc.
|
constexpr |
Definition at line 24 of file test_gbase.cc.