__init__ constructor
Leave feedback
On this page
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. |
from groupdocs.search.common import FileLogger
log_path = "./output/log.txt"
logger = FileLogger(log_path, 4.0) # 4 MB max size
- class
FileLogger
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.