mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Initial commit
This commit is contained in:
18
blacklib/samples/Logging/main.cpp
Normal file
18
blacklib/samples/Logging/main.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <QCoreApplication>
|
||||
#include <blackmisc/debug.h>
|
||||
#include <blackcore/constants.h>
|
||||
#include <limits>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication a(argc, argv);
|
||||
BlackMisc::CApplicationContext myApplicationContext;
|
||||
|
||||
bInfo << "This is a Info log message";
|
||||
bWarning << "This is a bWarning log message";
|
||||
bError << "This is a bError log message";
|
||||
bDebug << "This is a bDebug log message";
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user