Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#173 Error reporting for property files

future
open
Václav Zeman
5
2013-08-14
2009-08-19
Psychon
No

It would be nice if there was some way to find out if helpers::Properties::Init() fails. Currently errors (file does not exist, file is not readable) are simply ignored. Also it would be nice if lines like "this is a line that makes no sense" would cause an error. Currently, that line would be ignored by Properties::Init() because it does not contain a '=' (find('=') in that function).

Discussion

  • Václav Zeman
    Václav Zeman
    2009-08-20

    The entire error handling and internal logging is rather inconsistent in log4cplus right now. I am not entirely sure what to do about it, how to improve it.

     
  • Václav Zeman
    Václav Zeman
    2009-08-20

    • assigned_to: nobody --> wilx
     
  • Václav Zeman
    Václav Zeman
    2013-07-14

    Ticket moved from /p/log4cplus/feature-requests/16/

     
  • Václav Zeman
    Václav Zeman
    2013-08-14

    • labels: --> enhancement
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,2 @@
    -It would be nice if there was some way to find out if helpers::Properties::Init\(\) fails. Currently errors \(file does not exist, file is not readable\) are simply ignored.
    -Also it would be nice if lines like "this is a line that makes no sense" would cause an error. Currently, that line would be ignored by Properties::Init\(\) because does not contain a '=' \(find\('='\) in that function\).
    +It would be nice if there was some way to find out if `helpers::Properties::Init()` fails. Currently errors (file does not exist, file is not readable) are simply ignored. Also it would be nice if lines like "this is a line that makes no sense" would cause an error. Currently, that line would be ignored by `Properties::Init()` because it does not contain a '=' (`find('=')` in that function).
    
    -Thanks.
    -Uli
    
    • Group: --> future