Re: Where does the error output go, when there is a parse error parsing weewx.conf?

53 views
Skip to first unread message
Message has been deleted

vince

unread,
Dec 16, 2023, 6:41:12 PM12/16/23
to weewx-user
If you have rsyslog installed and running, it's using that,  but without seeing your error output, hard to say.

I'd try "sudo journalctl -u weewx" and see if anything is returned of any value.

Which debian version might help a little too.

michael.k...@gmx.at

unread,
Dec 16, 2023, 6:48:04 PM12/16/23
to weewx-user
cat /etc/debian_version
11.7


journalctl isn't installed

Oops, I deleted the original message this was it:

When I have an erroneous weewx.conf and start weewx using
systemctl start weewx
there is nothing in my log file, nor in /var/log/syslog . I am on Debian using rsyslog and have the logging configured like so in weewx.conf:
[Logging]
    version = 1
    disable_existing_loggers = False
   
    # Root logger
    [[root]]
        level = INFO
        handlers = rotate,
   
    # Additional loggers would go in the following section. This is useful for tailoring logging
    # for individual modules.
    [[loggers]]
   
    # Definitions of possible logging destinations
    [[handlers]]
       
        # Log to a set of rotating files    
        [[[rotate]]]
            level = INFO
            formatter = verbose
            class = logging.handlers.RotatingFileHandler
            filename = /var/log/weewxd.log
            maxBytes = 10000000
            backupCount = 4

When I start weewxd manually, the error output is shown, any I ideas where the output is stored (if it is stored) or how to set up logging, that this output is stored in the weewxd.log file?

michael.k...@gmx.at

unread,
Dec 16, 2023, 6:57:40 PM12/16/23
to weewx-user
 found it:  /var/log/journal/weewx.log

vince

unread,
Dec 16, 2023, 7:20:18 PM12/16/23
to weewx-user
Yup.  That's where systemd writes logs.
Reply all
Reply to author
Forward
0 new messages