Mechanism for log rotation

Hi @overeasy
Is there any way to automatically rotate logs or get a warning when the storage for logs is running low? Or will the logging just stop when the memory is full?. I asked the above question for logs in logfile not for the current and history logs.

Thanks

The current log grows to hold one year, about 1.5GB. After that it starts over at the beginning overwriting the oldest entries as it goes so that it always has the most recent year’s worth of data.

The history log grows to hold ten years about 1.35GB, then wraps like the current log so that it holds the most recent ten years.

Each integrator creates a log that holds the most recent year and is about 200MB when it wraps.

The message log is not size limited and will just grow, but it is typically not anywhere near the size of the datalogs. Nevertheless, if you suspect it has gotten large, simply delete it with the file manager and a new one will be created.

Most IoTaWatt units were sold with 4GB SDcards and some have 8GB. Up to 32GB is supported.

Here’s an example of my own system as @overeasy explains…

Got/installed mine in Jan 2023… and has been running since then. You can see the Current Log has a year’s worth at 1.504GB up to today. The History Log is only 326MB after 2+ years so it hasn’t started overwriting yet.