Opened 4 years ago

Closed 4 years ago

#9263 closed Feature Requests (fixed)

Add a format flag to extract function names from named scopes

Reported by: Andrey Semashev Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost Development Trunk Severity: Not Applicable
Keywords: Cc:


The named scope formatter can have a special format placeholder which would try to guess a function name from the scope name. If the scope name matches the conventional "type func(args)" pattern, the placeholder would only extract the "func" part. Otherwise the placeholder should expand in the whole scope name (similar to %n).

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by anonymous

This would be good. Just what i'm looking for. Also file name without path would be useful, as at least on visual studio c++ the path is also included. So log files end up full off clutter.

So instead of getting verbose formatting like this

"int cdecl main(int,char *[]);c:\users\someone\documents\visual studio 2013\projects\source1.cpp;201"

one could get concise formatting like this:


comment:2 Changed 4 years ago by Andrey Semashev

Last edited 4 years ago by Andrey Semashev (previous) (diff)

comment:3 Changed 4 years ago by Andrey Semashev

Resolution: fixed
Status: newclosed

Merged to master.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Andrey Semashev.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.