memorax.loggers.FileLogger#
- class memorax.loggers.FileLogger[source]#
Bases:
BaseLogger[FileLoggerState]FileLogger(algorithm: str, environment: str, directory: str = ‘logs’)
- classmethod __class_getitem__(params)#
Parameterizes a generic class.
At least, parameterizing a generic class is the main thing this method does. For example, for some generic class Foo, this is called when we do Foo[int] - there, with cls=Foo and params=int.
However, note that this method is also called when defining generic classes in the first place with class Foo(Generic[T]): ….
- __init__(algorithm, environment, directory='logs')#
- replace(**updates)#
Returns a new object replacing the specified fields with new values.