omdev 0.0.0.dev430__py3-none-any.whl → 0.0.0.dev432__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
omdev/scripts/interp.py CHANGED
@@ -4220,10 +4220,14 @@ def _locking_logging_module_lock() -> ta.Iterator[None]:
4220
4220
  def configure_standard_logging(
4221
4221
  level: ta.Union[int, str] = logging.INFO,
4222
4222
  *,
4223
- json: bool = False,
4224
4223
  target: ta.Optional[logging.Logger] = None,
4224
+
4225
4225
  force: bool = False,
4226
+
4226
4227
  handler_factory: ta.Optional[ta.Callable[[], logging.Handler]] = None,
4228
+
4229
+ formatter: ta.Optional[logging.Formatter] = None, # noqa
4230
+ json: bool = False,
4227
4231
  ) -> ta.Optional[StandardConfiguredLoggingHandler]:
4228
4232
  with _locking_logging_module_lock():
4229
4233
  if target is None:
@@ -4244,11 +4248,11 @@ def configure_standard_logging(
4244
4248
 
4245
4249
  #
4246
4250
 
4247
- formatter: logging.Formatter
4248
- if json:
4249
- formatter = JsonLoggingFormatter()
4250
- else:
4251
- formatter = StandardLoggingFormatter(StandardLoggingFormatter.build_log_format(STANDARD_LOG_FORMAT_PARTS))
4251
+ if formatter is None:
4252
+ if json:
4253
+ formatter = JsonLoggingFormatter()
4254
+ else:
4255
+ formatter = StandardLoggingFormatter(StandardLoggingFormatter.build_log_format(STANDARD_LOG_FORMAT_PARTS)) # noqa
4252
4256
  handler.setFormatter(formatter)
4253
4257
 
4254
4258
  #