mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-06 05:24:50 -04:00
Added ability to reflect RNS logs to app-internal log handler callback
This commit is contained in:
parent
5e2b3df623
commit
ed30fa3e0a
2 changed files with 16 additions and 0 deletions
|
@ -213,6 +213,9 @@ class Reticulum:
|
|||
if logdest == RNS.LOG_FILE:
|
||||
RNS.logdest = RNS.LOG_FILE
|
||||
RNS.logfile = Reticulum.configdir+"/logfile"
|
||||
elif callable(logdest):
|
||||
RNS.logdest = RNS.LOG_CALLBACK
|
||||
RNS.logcall = logdest
|
||||
|
||||
Reticulum.configpath = Reticulum.configdir+"/config"
|
||||
Reticulum.storagepath = Reticulum.configdir+"/storage"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue