__init__ constructor

On this page

init

Initializes a new FileLogger instance.

def __init__(self, file_path, max_size):
    ...
Parameter Type Description
file_path str The log file path.
max_size float The maximum size of the log file in megabytes. Must be in the range from 0.1 to 1000.

Example

from groupdocs.search.common import FileLogger

log_path = "./output/log.txt"
logger = FileLogger(log_path, 4.0)  # 4 MB max size

See Also

On this page