Changes between Version 25 and Version 26 of Coding_Conventions


Ignore:
Timestamp:
Jan 22, 2015, 10:54:33 PM (9 years ago)
Author:
Philip Taylor
Comment:

Update logger documentation

Legend:

Unmodified
Added
Removed
Modified
  • Coding_Conventions

    v25 v26  
    136136{{{
    137137#!cpp
    138 LOGERROR(L"Failed to load item %d from file %ls", i, path.c_str());
    139 }}}
    140    This gets display on screen in red, and saved in the log files. `LOGERROR` takes `wprintf`-style format strings. ''Exception:'' Code in `source/lib/` can't use `LOGERROR` (it can only use things defined in `source/lib/`).
     138LOGERROR("Failed to load item %d from file %s", i, path);
     139}}}
     140   This gets display on screen in red, and saved in the log files. `LOGERROR` takes `printf`-style format strings (specially [http://cppformat.readthedocs.org/en/stable/reference.html#printf-formatting-functions cppformat]). ''Exception:'' Code in `source/lib/` can't use `LOGERROR` (it can only use things defined in `source/lib/`).
    141141
    142142 * The engine should try to cope gracefully with `LOGERROR` cases, e.g. abort loading the current file; it should never crash in those cases.