On 14.1.2016 10:21, Gorbachev Ivan wrote:
>
> Hello! In my project i can't use config file, i need configure
> log4cplus only in code. How to disable console output in code ?
To avoid console output simply do not use any |ConsoleAppender|. You
will have to also avoid the easy way of configuring log4cplus through
|BasicConfigurator|. You can use |PropertyConfigurator| instead.
If you mean you want to avoid log4cplus diagnostic message to console,
you can enable quiet mode using |LogLog::setQuietMode(true)|. You can do
the same by having environment variable |LOG4CPLUS_LOGLOG_QUIETMODE=1| set.
--
VH
|