Example

Here are some examples to download

C++ example


#include <dbglog.h>

int main()
{
    logStderr(1);
    logMask("I2W3E3F3");
    LOG(INFO4, "Example %d", 1);
}

PHP example

<?php

dbglog_file('debug.log');
dbglog_mask('W3E3F3');
dbglog_stderr(1);

dbglog(WARN3, 'Logged warning.');
dbglog(ERR3, 'Logged error.');
dbglog(FATAL3, 'Logged fatal error.');

?>

Python example

#!/usr/bin/env python

from dbglog import dbg

dbg.logStderr(True)
dbg.logMask("I2W3E3F3")
dbg.logFile("debug.log")

dbg.log("Logged warning.", WARN=3)
dbg.log("Logged error.", ERR=3)
dbg.log("Logged fatal error.", FATAL=3)