eolearn.core.utils.logging

The utilities module is a collection of classes and functions used across the eolearn package, such as checking whether two objects are deeply equal, padding of an image, etc.

class eolearn.core.utils.logging.LogFileFilter(thread_name, *args, **kwargs)[source]

Bases: logging.Filter

Filters log messages passed to log file.

Parameters
  • thread_name (Optional[str]) – Name of the thread by which to filter logs. By default, it won’t filter by any name.

  • args (Any) –

  • kwargs (Any) –

filter(record)[source]

Shows everything from the thread that it was initialized in.

Parameters

record (logging.LogRecord) –

Return type

bool