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: Filter

Filters log messages passed to log file.

Parameters:
  • thread_name (str | None) – 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 (LogRecord) –

Return type:

bool