source: XIOS/branchs/xios-1.0/src/log.cpp @ 548

Last change on this file since 548 was 548, checked in by rlacroix, 8 years ago

Backport r523 into the stable branch.

Improve the message error handling by mimicking the behavior of the info/report logs.

Output the error messages to the standart error message until the context is correctly initialized. Then, output the error messages to a file if the user has set "print_file" parameter to "true".

  • Fix: Errors that occured before MPI was initialized (e.g. during the config file parsing) caused a MPI error on top of the original error.
  • Fix: The error file could sometimes be misnamed if the error happened before the context was completely known.
  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
  • Property svn:eol-style set to native
File size: 125 bytes
1#include "log.hpp"
3namespace xios
5  CLog info("info") ;
6  CLog report("report") ;
7  CLog error("error", cerr.rdbuf()) ;
Note: See TracBrowser for help on using the repository browser.