logger: with MU_LOG_STDOUTERR, write logs to console
For debugging
This commit is contained in:
@ -122,6 +122,9 @@ Mu::log_init(const std::string& path, Mu::LogOptions opts)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_getenv("MU_LOG_STDOUTERR"))
|
||||||
|
opts |= LogOptions::StdOutErr;
|
||||||
|
|
||||||
MuLogOptions = opts;
|
MuLogOptions = opts;
|
||||||
MuLogPath = path;
|
MuLogPath = path;
|
||||||
|
|
||||||
|
|||||||
@ -40,6 +40,9 @@ enum struct LogOptions {
|
|||||||
* logging fails -- practically, it goes to the file if there's
|
* logging fails -- practically, it goes to the file if there's
|
||||||
* systemd/journald.
|
* systemd/journald.
|
||||||
*
|
*
|
||||||
|
* if the environment variable MU_LOG_STDOUTERR is set, LogOptions::StdoutErr is
|
||||||
|
* implied.
|
||||||
|
*
|
||||||
* @param path path to the log file
|
* @param path path to the log file
|
||||||
* @param opts logging options
|
* @param opts logging options
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user