File: logger.cpp

package info (click to toggle)
yrmcds 1.1.9-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 940 kB
  • sloc: cpp: 11,149; sh: 148; makefile: 117
file content (15 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cybozu/logger.hpp>

/* To see the optimization effects, 
 * 1. run gdbtui,
 * 2. enter "layout asm",
 * 3. "b main", "run", then "stepi".
 */

int main(int argc, char** argv) {
    if( argc > 1 )
        cybozu::logger::instance().open(argv[1]);
    cybozu::logger::debug() << "hoge, " << 3.145 << ", " << (10LL<<40);
    cybozu::logger::info() << "fuga";
    return 0;
}