-
-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #439 from easylogging/develop
v9.89 Release
- Loading branch information
Showing
16 changed files
with
181 additions
and
237 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/* | ||
build-* | ||
*.pro.user | ||
.DS_Store | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Easylogging++ v9.89 RELEASE NOTES | ||
--------------------------------- | ||
|
||
Release type: Minor | ||
API changes: Yes | ||
Breaking Change: No | ||
|
||
========================== | ||
= NEW FEATURES = | ||
========================== | ||
|
||
- New `LoggerRegistrationCallback` API to view / update newly registered loggers | ||
|
||
========================== | ||
= NOTES = | ||
========================== | ||
|
||
- See https://github.com/easylogging/easyloggingpp/blob/v9.89/README.md for manual for this release | ||
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes | ||
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// This file is part of Easylogging++ samples | ||
// LoggerRegistrationCallback sample | ||
// | ||
// Revision 1.0 | ||
// @author mkhan3189 | ||
// | ||
|
||
#include "easylogging++.h" | ||
|
||
INITIALIZE_EASYLOGGINGPP | ||
class Handler : public el::LoggerRegistrationCallback { | ||
protected: | ||
void handle(const el::Logger* logger) { | ||
// Never log anything here | ||
ELPP_COUT << "(Handler) Registered new logger " << logger->id() << std::endl; | ||
} | ||
}; | ||
|
||
class Handler2 : public el::LoggerRegistrationCallback { | ||
protected: | ||
void handle(const el::Logger* logger) { | ||
ELPP_COUT << "(Handler2) Registered new logger " << logger->id() << std::endl; | ||
} | ||
}; | ||
|
||
int main(void) { | ||
|
||
el::Loggers::installLoggerRegistrationCallback<Handler>("handler"); | ||
el::Loggers::installLoggerRegistrationCallback<Handler2>("handler2"); | ||
|
||
LOG(INFO) << "Now we will register three loggers"; | ||
|
||
el::Loggers::getLogger("logger1"); | ||
el::Loggers::getLogger("logger2"); | ||
el::Loggers::getLogger("logger3"); | ||
return 0; | ||
} |
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
Oops, something went wrong.