const tstring pattern( "%-5p [%t]: %m%n" );
const tstring pattern( _T("%-5p [%t]: %m%n") );
int main(){  int result = EXIT_SUCCESS;  try  {    //LayoutPtr layout = new PatternLayout();    PatternLayout *layout = new PatternLayout();    const tstring pattern( "%-5p [%t]: %m%n" );    layout->setConversionPattern( pattern );    AppenderPtr consoleAppender =      new ConsoleAppender(layout, _T("System.out"));    LoggerPtr rootLogger = Logger::getRootLogger();    rootLogger->addAppender(consoleAppender);    rootLogger->debug(_T("debug message"));    rootLogger->info(_T("info message"));    rootLogger->warn(_T("warn message"));    rootLogger->error(_T("error message"));    rootLogger->fatal(_T("fatal message"));  }  catch(Exception&)  {    result = EXIT_FAILURE;  }  return result;}