Skip to content

Set global log level in 0.13 #1625

@mhoeijm

Description

@mhoeijm

Description of the modifications

With PR #1491 the logger seems to have changed. This is however not reflected in the "Global logging" section of the documentation of 0.13 . The set_log_level method does not exist anymore.

import ansys.fluent.core as pyfluent
pyfluent.set_log_level("DEBUG") # by default, only errors are shown

With 0.13 do we still have control over the global log level? Is the following the intended way to control log levels?

import logging
tui_logger = logging.getLogger("ansys.fluent.services.tui")
tui_logger.setLevel("DEBUG")
data_model_logger = logging.getLogger("ansys.fluent.services.datamodel")
data_model_logger.setLevel("DEBUG")
launcher_logger = logging.getLogger("ansys.fluent.services.launcher")
launcher_logger.setLevel("DEBUG")

Useful links and references

No response

Metadata

Metadata

Assignees

Labels

bugIssue, problem or error in PyFluentdocumentationDocumentation related (improving, adding, etc)

Type

No type

Projects

Status

2021-2024

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions