qBittorrent
logger.h File Reference
#include <boost/circular_buffer.hpp>
#include <QObject>
#include <QReadWriteLock>
#include <QString>
#include <QtContainerFwd>
Include dependency graph for logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Log::Msg
 
struct  Log::Peer
 
class  Logger
 

Namespaces

 Log
 

Enumerations

enum  Log::MsgType {
  Log::ALL = -1 , Log::NORMAL = 0x1 , Log::INFO = 0x2 , Log::WARNING = 0x4 ,
  Log::CRITICAL = 0x8
}
 

Functions

void LogMsg (const QString &message, const Log::MsgType &type=Log::NORMAL)
 

Variables

const int MAX_LOG_MESSAGES = 20000
 

Function Documentation

◆ LogMsg()

void LogMsg ( const QString &  message,
const Log::MsgType type = Log::NORMAL 
)

Definition at line 125 of file logger.cpp.

126 {
127  Logger::instance()->addMessage(message, type);
128 }
void addMessage(const QString &message, const Log::MsgType &type=Log::NORMAL)
Definition: logger.cpp:73
static Logger * instance()
Definition: logger.cpp:56

References Logger::addMessage(), and Logger::instance().

Referenced by BitTorrent::Session::addMoveTorrentStorageJob(), BitTorrent::Session::addTorrent(), TorrentFilesWatcher::Worker::addWatchedFolder(), RSS::AutoDownloader::AutoDownloader(), PeerListWidget::banSelectedPeers(), SearchController::checkForUpdatesFailed(), SearchController::checkForUpdatesFinished(), WebApplication::configure(), BitTorrent::Session::configureNetworkInterfaces(), BitTorrent::TorrentImpl::connectPeer(), BitTorrent::Session::createTorrent(), MainWindow::createTrayIcon(), Net::GeoIPManager::downloadFinished(), BitTorrent::Session::exportTorrentFile(), anonymous_namespace{upgrade.cpp}::exportWebUIHttpsFiles(), BitTorrent::Session::getListeningIPs(), SearchPluginManager::getPluginVersion(), BitTorrent::Session::handleAddTorrentAlert(), BitTorrent::Session::handleAlertsDroppedAlert(), BitTorrent::Session::handleDownloadFinished(), RSS::Feed::handleDownloadFinished(), BitTorrent::Session::handleExternalIPAlert(), BitTorrent::TorrentImpl::handleFastResumeRejectedAlert(), BitTorrent::Session::handleFileErrorAlert(), BitTorrent::TorrentImpl::handleFileRenameFailedAlert(), BitTorrent::Session::handleIPFilterError(), BitTorrent::Session::handleIPFilterParsed(), BitTorrent::Session::handleListenFailedAlert(), BitTorrent::Session::handleListenSucceededAlert(), RSS::Feed::handleParsingFinished(), BitTorrent::TorrentImpl::handlePerformanceAlert(), BitTorrent::Session::handlePortmapAlert(), BitTorrent::Session::handlePortmapWarningAlert(), BitTorrent::Session::handleSocks5Alert(), BitTorrent::Session::handleStorageMovedAlert(), BitTorrent::Session::handleStorageMovedFailedAlert(), BitTorrent::Session::handleTorrentDeletedAlert(), BitTorrent::Session::handleTorrentDeleteFailedAlert(), BitTorrent::Session::handleTorrentFinished(), BitTorrent::Session::handleTorrentRemovedAlert(), BitTorrent::Session::handleTorrentTrackersAdded(), BitTorrent::Session::handleTorrentTrackersRemoved(), BitTorrent::Session::handleTorrentUrlSeedsAdded(), BitTorrent::Session::handleTorrentUrlSeedsRemoved(), BitTorrent::Session::handleUrlSeedAlert(), Net::DownloadManager::ignoreSslErrors(), BitTorrent::Session::initializeNativeSession(), SearchPluginManager::installPlugin_impl(), WebApplication::isCrossSiteRequest(), RSS::AutoDownloader::load(), RSS::Feed::load(), TorrentFilesWatcher::load(), BitTorrent::BencodeResumeDataStorage::load(), BitTorrent::DBResumeDataStorage::load(), RSS::Feed::loadArticles(), BitTorrent::Session::loadCategories(), UIThemeManager::loadColorsFromJSONConfig(), RSS::Session::loadFolder(), TorrentFilesWatcher::loadLegacy(), BitTorrent::BencodeResumeDataStorage::loadQueue(), RSS::AutoDownloader::loadRules(), AuthController::loginAction(), BitTorrent::Session::moveTorrentStorage(), FileLogger::openLogFile(), FilterParserThread::parseDATFilterFile(), FilterParserThread::parseP2BFilterFile(), FilterParserThread::parseP2PFilterFile(), SearchPluginManager::parseVersionInfo(), TorrentFilesWatcher::Worker::processFailedTorrents(), TorrentFilesWatcher::Worker::processFolder(), BitTorrent::Session::processShareLimits(), Utils::ForeignApps::pythonInfo(), anonymous_namespace{uithememanager.cpp}::readFile(), BitTorrent::Session::recursiveTorrentDownload(), BitTorrent::DBResumeDataStorage::Worker::remove(), Application::runExternalProgram(), BitTorrent::Session::saveResumeData(), BitTorrent::Session::setAnonymousModeEnabled(), BitTorrent::Session::setBannedIPs(), BitTorrent::Session::setDHTEnabled(), BitTorrent::Session::setEncryption(), BitTorrent::TorrentImpl::setFirstLastPiecePriority(), TorrentsController::setLocationAction(), BitTorrent::Session::setLSDEnabled(), BitTorrent::Session::setPeXEnabled(), PortForwarderImpl::start(), BitTorrent::Tracker::start(), BitTorrent::Session::startUpTorrents(), PortForwarderImpl::stop(), TorrentFilesWatcher::store(), BitTorrent::BencodeResumeDataStorage::Worker::store(), BitTorrent::DBResumeDataStorage::Worker::store(), BitTorrent::Session::storeCategories(), BitTorrent::BencodeResumeDataStorage::Worker::storeQueue(), BitTorrent::DBResumeDataStorage::Worker::storeQueue(), anonymous_namespace{foreignapps.cpp}::testPythonInstallation(), UIThemeManager::UIThemeManager(), anonymous_namespace{upgrade.cpp}::upgradeDNSServiceSettings(), anonymous_namespace{upgrade.cpp}::upgradeSchedulerDaysSettings(), anonymous_namespace{upgrade.cpp}::upgradeTrayIconStyleSettings(), and WebApplication::validateHostHeader().

Here is the call graph for this function:

Variable Documentation

◆ MAX_LOG_MESSAGES

const int MAX_LOG_MESSAGES = 20000

Definition at line 38 of file logger.h.