forked from quickshell/quickshell
		
	core/log: track default logging categories
Fixes a bug in fb37be7 which ignored default logging categories due to
skipping QLoggingRegistry's filter.
			
			
This commit is contained in:
		
							parent
							
								
									5d7e07508a
								
							
						
					
					
						commit
						3d594e16dd
					
				
					 68 changed files with 212 additions and 79 deletions
				
			
		| 
						 | 
				
			
			@ -20,12 +20,13 @@
 | 
			
		|||
#include <qtmetamacros.h>
 | 
			
		||||
#include <qtypes.h>
 | 
			
		||||
 | 
			
		||||
#include "../core/logcat.hpp"
 | 
			
		||||
#include "../core/util.hpp"
 | 
			
		||||
 | 
			
		||||
namespace qs::io {
 | 
			
		||||
 | 
			
		||||
namespace {
 | 
			
		||||
Q_LOGGING_CATEGORY(logFileView, "quickshell.io.fileview", QtWarningMsg);
 | 
			
		||||
QS_LOGGING_CATEGORY(logFileView, "quickshell.io.fileview", QtWarningMsg);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
QString FileViewError::toString(FileViewError::Enum value) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,9 +11,10 @@
 | 
			
		|||
#include <qqmlengine.h>
 | 
			
		||||
#include <qtmetamacros.h>
 | 
			
		||||
 | 
			
		||||
#include "../core/logcat.hpp"
 | 
			
		||||
#include "datastream.hpp"
 | 
			
		||||
 | 
			
		||||
Q_LOGGING_CATEGORY(logSocket, "quickshell.io.socket", QtWarningMsg);
 | 
			
		||||
QS_LOGGING_CATEGORY(logSocket, "quickshell.io.socket", QtWarningMsg);
 | 
			
		||||
 | 
			
		||||
void Socket::setSocket(QLocalSocket* socket) {
 | 
			
		||||
	if (this->socket != nullptr) this->socket->deleteLater();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,10 +10,11 @@
 | 
			
		|||
#include <qtclasshelpermacros.h>
 | 
			
		||||
#include <qtmetamacros.h>
 | 
			
		||||
 | 
			
		||||
#include "../core/logcat.hpp"
 | 
			
		||||
#include "../core/reload.hpp"
 | 
			
		||||
#include "datastream.hpp"
 | 
			
		||||
 | 
			
		||||
Q_DECLARE_LOGGING_CATEGORY(logSocket);
 | 
			
		||||
QS_DECLARE_LOGGING_CATEGORY(logSocket);
 | 
			
		||||
 | 
			
		||||
///! Unix socket listener.
 | 
			
		||||
class Socket: public DataStream {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue