{
static std::ostream & outStr( getenv("ZYPP_NOLOG") ? noStream()
: std::cerr );
- return outStr
+ static std::ostream & fullStr( getenv("ZYPP_FULLLOG") ? outStr
+ : noStream() );
+ return (level_r != E_XXX ? outStr : fullStr )
<< str::form( "<%d> [%s] %s(%s):%d ",
level_r, group_r,
file_r, func_r, line_r );
* @see getStream
*/
enum LogLevel {
- E_XXX = -1, /**< Excessive logging. */
- E_DBG = 0, /**< Debug or verbose. */
- E_MIL, /**< Milestone. */
- E_WAR, /**< Warning. */
- E_ERR, /**< Error. */
- E_SEC, /**< Secutrity related. */
- E_INT, /**< Internal error. */
- E_USR /**< User log. */
+ E_XXX = 999, /**< Excessive logging. */
+ E_DBG = 0, /**< Debug or verbose. */
+ E_MIL, /**< Milestone. */
+ E_WAR, /**< Warning. */
+ E_ERR, /**< Error. */
+ E_SEC, /**< Secutrity related. */
+ E_INT, /**< Internal error. */
+ E_USR /**< User log. */
};
/** Return a log stream to write on.