I'm trying to setup remote logging for autosuspend and have followed the documentation and edited the autosuspend-logging.conf with the following:
[loggers]
keys=root,autosuspend,checks
[handlers]
keys=broadcastHandler
#keys=consoleHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=INFO
handlers=broadcastHandler
#handlers=consoleHandler
[logger_autosuspend]
qualname=autosuspend
propagate=0
level=INFO
handlers=consoleHandler
[logger_checks]
qualname=autosuspend.checks
propagate=0
level=INFO
handlers=consoleHandler
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
datefmt=
[handler_broadcastHandler]
class=broadcastlogging.BroadcastHandler
level=DEBUG
args=('192.168.0.255',55555)`
On a remote windows PC I have installed python 3.7 from the windows store, then installed this package using 'pip install broadcast-logging'
Using the example from the docs on the windows machine I enter:
python -m broadcastlogging -c -b '192.168.0.255' 55555
But I receive this error:
C:\Program Files (x86)\Windows Resource Kits\Tools>python -m broadcastlogging -c -b '192.168.0.255' 55555
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\dodge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\broadcastlogging.py", line 152, in <module>
receiver()
File "C:\Users\dodge\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\broadcastlogging.py", line 105, in receiver
sock.bind((args.bind, args.port))
socket.gaierror: [Errno 11001] getaddrinfo failed
I have tried changing the IP address to one on my own network, but its the same result. Something about the windows installation of this package doesn't seem to work for some reason. I've also searched online for a solution, and set my http and https proxy as my IP address in windows.
Any suggestions what could be wrong?
I'm trying to setup remote logging for autosuspend and have followed the documentation and edited the autosuspend-logging.conf with the following:
On a remote windows PC I have installed python 3.7 from the windows store, then installed this package using 'pip install broadcast-logging'
Using the example from the docs on the windows machine I enter:
But I receive this error:
I have tried changing the IP address to one on my own network, but its the same result. Something about the windows installation of this package doesn't seem to work for some reason. I've also searched online for a solution, and set my http and https proxy as my IP address in windows.
Any suggestions what could be wrong?