Opened 5 years ago

Last modified 5 years ago

#13409 new Bugs

Logging For Static Methods At Runtime

Reported by: cranberriess89@… Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

Hi, We've been logging with Boost Library in the application. We defined a dynamic class which can be configured differently to write on file, console and server by inheriting from Boost Log library classes. There are other 3rd party libraries in the application we use, and one of them includes static classes and methods. In some scenarios of the application, these static methods are called. Our goal is to be able to log for static methods when they are called at runtime.

As you may also know, the static methods are linked at compile time. So, I can not use our dynamic class for logging. Is there any simple approach I can apply for this purpose ?

Thanks in advance, Kind Regards

Change History (1)

comment:1 by Kohei Takahashi, 5 years ago

Component: Nonelog
Owner: set to Andrey Semashev
Note: See TracTickets for help on using tickets.