LOG management

Hi All

Does anyone perhaps have a nice script to manage the size of the log.
I am working with base64 images in the template data on the moment which flood the log file.
just deleting it every hour is a option but not very elegant :wink:

LS
maurice

Do you need the log-level you are on?

You can reducing logging in the config file:
<log-level>error</log-level>

Options are:

  • error
  • warning
  • info
  • debug
  • trace
1 Like

Thanks this suites my needs

How simple sometimes :wink:

also, you could try logrotate; its a linux daemon but there are windows equivalents: https://sourceforge.net/p/logrotatewin/wiki/LogRotate/

1 Like

And you can switch log levels on the fly with AMCP commands:
LOG LEVEL debug

Also this powershell script looks quite light weight:

https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-to-Roll-a96ec7d4