Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add Logger observer and helper class
https://bugs.webkit.org/show_bug.cgi?id=176106 Reviewed by Andy Estes. Source/WebCore/PAL: * pal/Logger.h: (PAL::LogArgument::toString): Add new variants. (PAL::Logger::Observer::~Observer): (PAL::Logger::logAlways const): Constify. (PAL::Logger::error const): Ditto. (PAL::Logger::warning const): Ditto. (PAL::Logger::notice const): Ditto. (PAL::Logger::info const): Ditto. (PAL::Logger::debug const): Ditto. (PAL::Logger::willLog const): Ditto. (PAL::Logger::MethodAndPointer::MethodAndPointer): Add class name, make object pointer const. (PAL::Logger::addObserver): New. (PAL::Logger::removeObserver): New. (PAL::Logger::Logger): (PAL::Logger::log): (PAL::Logger::observers): (PAL::LogHelper::willLog const): (PAL::LogArgument<Logger::MethodAndPointer>::toString): Tools: * TestWebKitAPI/Tests/WebCore/Logging.cpp: (TestWebKitAPI::LoggingTest::LoggingTest): (TestWebKitAPI::LoggingTest::Logger::create): (TestWebKitAPI::TEST_F): (TestWebKitAPI::LogObserver::log): (TestWebKitAPI::LogObserver::channel const): Canonical link: https://commits.webkit.org/192795@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221388 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
9c3cc8c
commit 8241cd7b0b2a99a4a0db053a7d37fcb195795074
Showing
4 changed files
with
231 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters