Configure whether the built-in log functions will output all log messages to
stderr.
The built-in log functions are funcGLib.log_default_handler for the
old-style API, and both funcGLib.log_writer_default and
funcGLib.log_writer_standard_streams for the structured API.
By default, log messages of levels flagsGLib.LogLevelFlags.LEVEL_INFO and
flagsGLib.LogLevelFlags.LEVEL_DEBUG are sent to stdout, and other log messages are
sent to stderr. This is problematic for applications that intend
to reserve stdout for structured output such as JSON or XML.
This function sets global state. It is not thread-aware, and should be
called at the very start of a program, before creating any other threads
or creating objects that could create worker threads of their own.
Configure whether the built-in log functions will output all log messages to stderr.
The built-in log functions are funcGLib.log_default_handler for the old-style API, and both funcGLib.log_writer_default and funcGLib.log_writer_standard_streams for the structured API.
By default, log messages of levels flagsGLib.LogLevelFlags.LEVEL_INFO and flagsGLib.LogLevelFlags.LEVEL_DEBUG are sent to stdout, and other log messages are sent to stderr. This is problematic for applications that intend to reserve stdout for structured output such as JSON or XML.
This function sets global state. It is not thread-aware, and should be called at the very start of a program, before creating any other threads or creating objects that could create worker threads of their own.