Opened 9 years ago

Closed 9 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:

Description

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).

Change History (3)

comment:1 by anonymous, 9 years ago

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:

"main;source1.cpp;201"

comment:2 by Andrey Semashev, 9 years ago

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

comment:3 by Andrey Semashev, 9 years ago

Resolution: fixed
Status: newclosed

Merged to master.

Note: See TracTickets for help on using tickets.