ronaldinho_x86
ronaldinho_x86
export an empty jar 0 size.
i just use: ``` self._logger = copy.deepcopy(base_logger) self._logger.add(EXEC_DIR.joinpath(f"./logs/{logfilename}.log"), encoding="utf8", retention="3 days", rotation="32 MB", compression="zip", enqueue=True) ``` also, my program is a network program, dose tcp port occupy file handle too?
when will logger instance release file handle?
ok i will keep tracking it, thank you
> Hi. > > You can probably use `logger_b = copy.deepcopy(logger_a)`. > > See more in depth explanations in the documentation: [Creating independent loggers with separate set of handlers](https://loguru.readthedocs.io/en/stable/resources/recipes.html#creating-independent-loggers-with-separate-set-of-handlers). thank...
yeah, in my case, i start many task(over x0000+), each one with a taskid, i want record task log to separate log, such as task1.log / task2.log ... use bind...
and use filter msg will log to global "logger" too, that is i do not want
i use configed global "logger" for convenience, so do i want a free logger instance too :)
> In the meantime you can probably add `base_logger = copy.deepcopy(logger)` at the very beginning of your application and later use `logger_b = copy.deepcopy(base_logger)` before starting your worker. That's way,...
ok,thank you very much🤣