set_log_level#

kikuchipy.set_log_level(level: str)[source]#

Set level of kikuchipy logging messages.

Parameters:
level

Any value accepted by logging.Logger.setLevel(). Levels are "DEBUG", "INFO", "WARNING", "ERROR" and "CRITICAL".

Notes

See https://docs.python.org/3/howto/logging.html.

Examples

>>> import kikuchipy as kp
>>> kp.set_log_level("DEBUG")
>>> s = kp.data.nickel_ebsd_small()
>>> s2 = s.deepcopy()  
DEBUG:kikuchipy.signals._kikuchipy_signal:Transfer custom properties when deep copying