-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overhaul of the Logging Infrastructure #1596
base: dev
Are you sure you want to change the base?
Commits on Sep 20, 2024
-
Pulled ostream operators for IPAddress and MacAddress into the namesp…
…ace to satisfy ADL requirements.
Configuration menu - View commit details
-
Copy full SHA for 0293115 - Browse repository at this point
Copy the full SHA 0293115View commit details
Commits on Sep 30, 2024
-
- LogLevel is now a top level enum class. - Added a new log level Off to disable output from a specific module. - Logger::LogLevel is a deprecated alias to LogLevel. - Logger::Info, Debug, Error are deprecated aliases to LogLevel::... - Removed public "internal*" functions from Logger.Logger - Added LogSource struct to encapsulate source information. - Added shouldLog method to check if a log should be emitted for a given level and module. - Removed nonfunctional artifacts "m_LogStream" and "Logger::operator<<" - Added templated "log" functions that are friends to Logger. - Reworked PCPP_LOG macros to no longer utilize the now removed internal functions. - Added PCPP_LOG_INFO macro level. - Changed PCPP_LOG_ERROR to now check if the log should be emitted. - Fixed NetworkUtils log module name overlapping with NetworkUtils class. - Fixed missing enum value for PacketLogModuleSll2Layer.
Configuration menu - View commit details
-
Copy full SHA for 45115e3 - Browse repository at this point
Copy the full SHA 45115e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for dfb98c5 - Browse repository at this point
Copy the full SHA dfb98c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9062c48 - Browse repository at this point
Copy the full SHA 9062c48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e856f0 - Browse repository at this point
Copy the full SHA 1e856f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02618fc - Browse repository at this point
Copy the full SHA 02618fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32ff8f9 - Browse repository at this point
Copy the full SHA 32ff8f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12492d2 - Browse repository at this point
Copy the full SHA 12492d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f21f85d - Browse repository at this point
Copy the full SHA f21f85dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0faf2e8 - Browse repository at this point
Copy the full SHA 0faf2e8View commit details
Commits on Oct 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ae72e81 - Browse repository at this point
Copy the full SHA ae72e81View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43d7b1c - Browse repository at this point
Copy the full SHA 43d7b1cView commit details
Commits on Oct 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 87042f5 - Browse repository at this point
Copy the full SHA 87042f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for be95ab8 - Browse repository at this point
Copy the full SHA be95ab8View commit details -
Revert "Moved log functions inside logger."
This reverts commit be95ab8.
Configuration menu - View commit details
-
Copy full SHA for 4b21a99 - Browse repository at this point
Copy the full SHA 4b21a99View commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 00034e9 - Browse repository at this point
Copy the full SHA 00034e9View commit details -
Moved the log functions to the Logger class.
- Added optional compile time elimination of log calls below set level.
Configuration menu - View commit details
-
Copy full SHA for b2055c0 - Browse repository at this point
Copy the full SHA b2055c0View commit details
Commits on Nov 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cfc3d56 - Browse repository at this point
Copy the full SHA cfc3d56View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac2a383 - Browse repository at this point
Copy the full SHA ac2a383View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3776653 - Browse repository at this point
Copy the full SHA 3776653View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76079a7 - Browse repository at this point
Copy the full SHA 76079a7View commit details -
Reverted to previous optimizations to keep executable binary size low.
- Renamed printLogMessage to emit and changed visibility to public. - Added new class LogContext to encapsulate a single emittable log message. - Added new methods createLogContext which is practically a rework of internalCreateLogStream but returns a LogContext. - Added optional use of object pooling optimization for reusing log contexts. (Enabled via preprocessor flag PCPP_LOG_USE_OBJECT_POOL)
Configuration menu - View commit details
-
Copy full SHA for 52b9007 - Browse repository at this point
Copy the full SHA 52b9007View commit details -
Fixed warnings about unreferenced local variables if the compile time…
… minimum log level set to too high severity..
Configuration menu - View commit details
-
Copy full SHA for c71dd27 - Browse repository at this point
Copy the full SHA c71dd27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 803c98a - Browse repository at this point
Copy the full SHA 803c98aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d44f76 - Browse repository at this point
Copy the full SHA 9d44f76View commit details -
Configuration menu - View commit details
-
Copy full SHA for af63a9b - Browse repository at this point
Copy the full SHA af63a9bView commit details
Commits on Nov 16, 2024
-
Added method useContextPooling to control if the logger should use co…
…ntext pooling. - Removed preprocessor variable PCPP_LOG_USE_OBJECT_POOL. - Disabled context pooling for the unit tests as it interferes with the memory leak checker.
Configuration menu - View commit details
-
Copy full SHA for 02e717a - Browse repository at this point
Copy the full SHA 02e717aView commit details -
Fixed more warnings about unreferenced local variables if the compile…
… time minimum log level set to too high severity..
Configuration menu - View commit details
-
Copy full SHA for 3410231 - Browse repository at this point
Copy the full SHA 3410231View commit details -
Addressed warnings and documentation.
- Added documentation to new methods and classes. - Addressed explicit constructor warnings. - Moved disable of context pooling for unit tests to the main.cpp files of the respective tests.
Configuration menu - View commit details
-
Copy full SHA for 379c074 - Browse repository at this point
Copy the full SHA 379c074View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc82caf - Browse repository at this point
Copy the full SHA bc82cafView commit details
Commits on Nov 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 69aa615 - Browse repository at this point
Copy the full SHA 69aa615View commit details -
Fixed memory checker issues with logger.
- Added 2 preallocated log contexts to the object pool.
Configuration menu - View commit details
-
Copy full SHA for 17ec9a2 - Browse repository at this point
Copy the full SHA 17ec9a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2029b4b - Browse repository at this point
Copy the full SHA 2029b4bView commit details -
Added mutex lock on the default log printer to support proper multi-t…
…hreading and eliminate possibility of data races during log emission.
Configuration menu - View commit details
-
Copy full SHA for c09a11a - Browse repository at this point
Copy the full SHA c09a11aView commit details