Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate log in interceptor extension #111

Open
steflp opened this issue Dec 30, 2022 · 0 comments
Open

separate log in interceptor extension #111

steflp opened this issue Dec 30, 2022 · 0 comments

Comments

@steflp
Copy link

steflp commented Dec 30, 2022

Hello
I ve seen when debug=1 in weewx.conf in main log there are this :
Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: raw packet: {'dateTime': 1672429957, 'usUnits': 1, 'rain_total': 0.32, 'barometer': 30.27, 'temperature_out': 56.6, 'humidity_out': 98.0, 'wind_speed': 3.1, 'wind_gust': 5.8, 'wind_dir': 146.0, 'dewpoint': 56.1, 'uv': 0.0, 'temperature_in': 67.2, 'humidity_in': 67.0, 'rain': 0.0} Dec 30 20:52:37 meteo-Ubuntu weewx-FROGGIT[1708329] DEBUG user.interceptor: mapped packet: {'dateTime': 1672429957, 'usUnits': 1, 'barometer': 30.27, 'outHumidity': 98.0, 'inHumidity': 67.0, 'outTemp': 56.6, 'inTemp': 67.2, 'windSpeed': 3.1, 'windGust': 5.8, 'windDir': 146.0, 'dewpoint': 56.1, 'rain': 0.0, 'UV': 0.0}
I want to separate this log to interceptor-weewx.log for example

I can use rsyslog.d to separate my logs but I dont know how to do this in interceptor.py

Can someone help me ?

Thanks
Stef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant