summaryrefslogtreecommitdiff
path: root/log.cpp
AgeCommit message (Collapse)Author
2026-03-20Wrap LogTrace FV/F functions with BN_ENABLE_LOG_TRACE guardPeter LaFosse
The *FV and *F variants were unconditionally calling fmt::vformat (allocating/formatting strings) even when trace logging was compiled out, since only the underlying LogTrace* callees were guarded. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-01-01update copyrights for 2026Jordan Wiens
2025-11-04Remove indenting APIs from Logger. These are thread unsafe by design.Rusty Wagner
Loggers are not owned by a specific thread and many are used by multiple threads. The indenting APIs could not be made to be thread safe in any way as they exist, so they have been removed. The data races caused by the indenting APIs are actually an important stability issue that could cause the indentation level to go out of bounds and crash the product. If you were using the indentation APIs, you will need to rewrite the usage to manually manage the indentation level in a thread safe way.
2025-09-02Introduce a new define to control LogTrace rather than using _DEBUGMark Rowe
Defining `_DEBUG` changes which MSVC runtime library needs to be linked which breaks clients attempting to use the C++ API with `RelWithDebInfo`. To fix this we define a new private `BN_ENABLE_LOG_TRACE` macro and use that within log.cpp where it was previously using `_DEBUG`. Fixes https://github.com/Vector35/binaryninja-api/issues/7288.
2025-08-01Add log functions for logging the current stack trace without an active ↵Rusty Wagner
exception
2025-08-01Add LogForException APIs to pass stack trace information separate from the ↵Rusty Wagner
message
2025-04-16Fix Logger indentation apiGlenn Smith
2025-03-28missed the older dates!Jordan Wiens
2024-10-14Add missing Logger::Indent functionsGlenn Smith
2024-01-08update copyright yearJordan Wiens
2023-11-13Add fmt library to apiGlenn Smith
2023-01-05Update copyright to 2023Josh F
2022-11-10Include C++ standard headersChristian Blichmann
When compiling in C++ mode, the C++ standard library headers should be included instead of their C counterparts. Drive-by: - Removed include of `json/json.h` from `settings.cpp`, where it was not used
2022-10-05Deprecate BNLogRegisterLoggerCallback and make its use in the LogView ↵Peter LaFosse
unnecessary
2022-05-19Add to LogView combo box from main threadPeter LaFosse
2022-03-16Add LogTracePeter LaFosse
2022-03-16Add support for structured loggingPeter LaFosse
2022-01-03update copyright yearsJordan Wiens
2021-01-18updating copyright yearJordan Wiens
2020-01-01update copyright year to 2020Jordan Wiens
2019-01-17update company name and copyright dateJordan Wiens
2018-02-26Log cleanup.Brian Potchik
2017-05-19update copyright yearJordan Wiens
2016-04-10Add MIT license for API wrappersRusty Wagner
2015-03-19Improve performance by avoiding heavy lock contentionRusty Wagner
2015-03-03Fix missing castRusty Wagner
2015-03-03Add a logging systemRusty Wagner