int main(int argc, char *argv[]){ // set up two channel chains - one to the // console and the other one to a log file. FormattingChannel* pFCConsole = new FormattingChannel(new PatternFormatter("%s: %p: %t")); pFCConsole->setChannel(new WindowsConsoleChannel); pFCConsole->open();