mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-07 10:05:51 +08:00
Re-added logging samples to overcome capital L directory
This commit is contained in:
20
samples/logging/main.cpp
Normal file
20
samples/logging/main.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <QCoreApplication>
|
||||
#include "blackmisc/debug.h"
|
||||
#include "blackmisc/context.h"
|
||||
#include <limits>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
BlackMisc::CApplicationContext myApplicationContext;
|
||||
|
||||
BlackMisc::IContext::getInstance().setSingleton(new BlackMisc::CDebug());
|
||||
|
||||
bAppInfo << "This is a Info log message";
|
||||
bAppWarning << "This is a bWarning log message";
|
||||
bAppError << "This is a bError log message";
|
||||
bAppDebug << "This is a bDebug log message";
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user