Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.6 (build 3101) - 20 January 2021 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Debug logging

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Cortmalaw
Posts: 27
Joined: Sat 26 Dec 2020 2:21 pm
Weather Station: Davis
Operating System: Raspbian
Location: Near Glasgow, Scotland, UK

Debug logging

Post by Cortmalaw »

I wanted to turn on debug logging. To find out how, I looked in the Wiki. I fixed the link there to refer to the new updated Settings / Program settings menu.

I let Cumulus continue for a while, then looked for the file. But I can't find it. According to the Wiki, it should be called Debug.log in the CumulusMX root directory.
But it isn't there. Indeed, it doesn't seem to be anywhere on my system:

Code: Select all

pi@SSD:/opt/CumulusMX $ sudo find / -name "*.log"
/var/log/dpkg.log
/var/log/mail.log
/var/log/daemon.log
/var/log/apache2/error.log
/var/log/apache2/access.log
/var/log/apache2/other_vhosts_access.log
/var/log/user.log
/var/log/fontconfig.log
/var/log/auth.log
/var/log/kern.log
/var/log/bootstrap.log
/var/log/boot.log
/var/log/apt/term.log
/var/log/apt/history.log
/var/log/mosquitto/mosquitto.log
/var/log/alternatives.log
/usr/share/doc/python3.7/pybench.log
The settings page says the switch only turns Debug logging on for the current session, but I tried a restart and that didn't make a file either

What am I doing wrong? or is something broken?

water01
Posts: 2054
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Debug logging

Post by water01 »

In CumulusMX the logging files are in the MXDiags directory and are in date order with a .txt extension.

I think you must have been looking at the old Cumulus 1 part of the documentation.
David
Image

Cortmalaw
Posts: 27
Joined: Sat 26 Dec 2020 2:21 pm
Weather Station: Davis
Operating System: Raspbian
Location: Near Glasgow, Scotland, UK

Re: Debug logging

Post by Cortmalaw »

Thanks, got it!

The Wiki page does not say whether it is for Cumulus 1 or CumulusMX. I updated it to cover both.

sfws
Posts: 938
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: --
Operating System: --

Re: Debug logging

Post by sfws »

Cortmalaw wrote:
Tue 12 Jan 2021 4:56 pm
I wanted to turn on debug logging. To find out how, I looked in the Wiki. I fixed the link there to refer to the new updated Settings / Program settings menu
It is good to see that someone is keeping the Wiki up to date.
water01 wrote:
Tue 12 Jan 2021 5:10 pm
In CumulusMX the logging files are in the MXDiags directory and are in date order with a .txt extension.

I think you must have been looking at the old Cumulus 1 part of the documentation.
Although David did not explicitly say you had updated the wrong article, that is what he implied.
You updated https://cumuluswiki.org/a/Debug.log, and your update to cover MX removed some Cumulus 1 specific information.
You should have updated [https://cumuluswiki.org/a/MXDiags] which already covered MX at earlier versions.
Cortmalaw wrote:
Tue 12 Jan 2021 6:11 pm
The Wiki page does not say whether it is for Cumulus 1 or CumulusMX. I updated it to cover both.
All Wiki pages were originally written when only Cumulus 1 existed. The page you updated had a title that relates to a file that is only in Cumulus 1, so previously it deliberately did not refer to MX.

Updating the whole Wiki is a massive job, and the developer asked for contributors at viewtopic.php?p=138229#p138229 but with insufficient response there are a lot of articles that still need updating. As my latest post in that topic implies, the update task is huge and therefore needs someone prepared to redesign the Wiki rather than just tweak the odd page.

Where pages cover both Cumulus 1 and MX, this should be very clear, e.g. https://cumuluswiki.org/a/Diagnostics.

It is critical the Wiki continues to be documentation for all Cumulus users whatever version they have installed. I have updated all 3 articles mentioned above, so the Wiki is now correct for those using Cumulus 1, those using an earlier version of MX who still have to use Station Settings, and those using a recent version who need to use Program Settings.

Post Reply