Log messages of the solvers (pyfe3d.solver.logger)#
The messages of the non-linear static analyses are printed to the standard
output, indented with one tab per level, and returned, such that the callers
may keep them. Every function has a silent flag that suppresses the
printing.
- pyfe3d.solver.logger.msg(text, level=0, silent=False)#
Print a log message
textis printed afterleveltabs unlesssilentisTrue.- Parameters:
- textstr
The message.
- levelint, optional
Indentation level, each level adds a tab. Default
0.- silentbool, optional
If
Truethe message is not printed. DefaultFalse.
- Returns:
- textstr
The message, without the indentation.
- pyfe3d.solver.logger.warn(text, level=0, silent=False)#
Print a warning message, starting with
WARNING:The prefix
WARNING: `` is added to ``text, and the result is printed afterleveltabs unlesssilentisTrue. Thewarningsmodule is not used, such that nothing is raised or recorded.- Parameters:
- textstr
The message.
- levelint, optional
Indentation level, each level adds a tab. Default
0.- silentbool, optional
If
Truethe message is not printed. DefaultFalse.
- Returns:
- textstr
The message with its prefix, without the indentation.