#141 PatternLayout: printing just the file name

v1.1.x
closed
None
4
2012-09-19
2012-08-24
Psychon
No

Right now, when using %F in a pattern, the filename as seen by the compiler gets used. This can include parts of a relative path, especially for headers (but also when an out-of-tree build was used while compiling the source). This looks ugly.

I have two suggestions:
- Change %F (and %l) to just print the substring after the last directory seperator ("/" or "\", depending on OS).
- Add new modifiers that do the above.

Please let me know if you see this as an issue that should be fixed and which fix you would prefer.

Thanks,
Uli

Discussion

  • Václav Haisman

    Václav Haisman - 2012-08-24

    This is already implemented using %b specifier at least on trunk. .

     
  • Václav Haisman

    Václav Haisman - 2012-08-24
    • assigned_to: nobody --> wilx
    • status: open --> open-works-for-me
     
  • Václav Haisman

    Václav Haisman - 2012-09-19
    • priority: 5 --> 4
    • milestone: --> v1.1.x
    • status: open-works-for-me --> closed-works-for-me
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks