Skip to content

flex_rf.tidy3d.log

Type: module Base(s): None

Logging Configuration for Tidy3d.

CONSOLE_WIDTH
DEFAULT_LEVEL
DEFAULT_LOG_STYLES
log
LogLevel
LogValue
get_aware_datetime() -> datetime

Get an aware current local datetime(with local timezone info)

get_logging_console() -> Console

Get console from logging handlers.

Progress(console: Console, show_progress: bool) -> Iterator[RichProgress | NoOpProgress]

Progress manager that wraps rich.Progress if show_progress is True, and NoOpProgress otherwise.

set_log_suppression(value: bool) -> None

Control log suppression for repeated messages.

set_logging_console(stderr: bool = False) -> None

Set stdout or stderr as console output

set_logging_file(fname: PathLike, filemode: str = 'w', level: LogValue = DEFAULT_LEVEL, log_path: bool = False) -> None

Set a file to write log to, independently from the stdout and stderr output chosen using set_logging_level.

set_logging_level(level: LogValue = DEFAULT_LEVEL) -> None

Set tidy3d console logging level priority.

set_warn_once(value: bool) -> None

Control whether warnings are only shown once per unique message.