mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Addded log categories / human readable pattern
This commit is contained in:
@@ -117,6 +117,20 @@ namespace BlackMisc
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Cache
|
||||
static const CLogCategory &cache()
|
||||
{
|
||||
static const CLogCategory cat { "swift.cache" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Background task
|
||||
static const CLogCategory &worker()
|
||||
{
|
||||
static const CLogCategory cat { "swift.worker" };
|
||||
return cat;
|
||||
}
|
||||
|
||||
//! Startup of application
|
||||
static const CLogCategory &startup()
|
||||
{
|
||||
@@ -145,6 +159,7 @@ namespace BlackMisc
|
||||
static const QList<CLogCategory> cats
|
||||
{
|
||||
uncategorized(),
|
||||
cache(),
|
||||
context(),
|
||||
contextSlot(),
|
||||
download(),
|
||||
@@ -158,7 +173,8 @@ namespace BlackMisc
|
||||
validation(),
|
||||
vatsimSpecific(),
|
||||
verification(),
|
||||
webservice()
|
||||
webservice(),
|
||||
worker()
|
||||
};
|
||||
return cats;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user