@@ -178,9 +178,9 @@ class LoggerCSV(LoggerBASE):
178178 Parameters
179179 ----------------
180180 path: str
181- Path to the folder where logs will be saved.
181+ Path to the folder where logs will be saved. Defaults to /<user-home>/daf/History
182182 delimiter: str
183- The delimiter between columns to use.
183+ The delimiter between columns to use. Defaults to ';'
184184 fallback: Optional[LoggerBASE]
185185 The manager to use, in case saving using this manager fails.
186186
@@ -190,7 +190,12 @@ class LoggerCSV(LoggerBASE):
190190 Something went wrong at OS level (insufficient permissions?)
191191 and fallback failed as well.
192192 """
193- def __init__ (self , path : str , delimiter : str , fallback : Optional [LoggerBASE ] = None ) -> None :
193+ def __init__ (
194+ self ,
195+ path : str = str (pathlib .Path .home ().joinpath ("daf/History" )),
196+ delimiter : str = ';' ,
197+ fallback : Optional [LoggerBASE ] = None
198+ ) -> None :
194199 self .path = path
195200 self .delimiter = delimiter
196201 super ().__init__ (fallback )
@@ -261,8 +266,8 @@ class LoggerJSON(LoggerBASE):
261266
262267 Parameters
263268 ----------------
264- path: str
265- Path to the folder where logs will be saved.
269+ path: Optional[ str]
270+ Path to the folder where logs will be saved. Defaults to /<user-home>/daf/History
266271 fallback: Optional[LoggerBASE]
267272 The manager to use, in case saving using this manager fails.
268273
@@ -272,7 +277,11 @@ class LoggerJSON(LoggerBASE):
272277 Something went wrong at OS level (insufficient permissions?)
273278 and fallback failed as well.
274279 """
275- def __init__ (self , path : str , fallback : Optional [LoggerBASE ] = None ) -> None :
280+ def __init__ (
281+ self ,
282+ path : str = str (pathlib .Path .home ().joinpath ("daf/History" )),
283+ fallback : Optional [LoggerBASE ] = None
284+ ) -> None :
276285 self .path = path
277286 super ().__init__ (fallback )
278287
0 commit comments