MyNixOS website logo

Attribute set of newsyslog configuration files to create in /etc/newsyslog.d/.

Each attribute name becomes the filename (with .conf extension automatically added). Each attribute value is a list of log rotation entries.

Declarations
    Type
    attribute set of list of (submodule)
    Default
    { }
    Example
    {
      myapp = [
        {
          logfilename = "/var/log/myapp.log";
          owner = "myuser";
          group = "wheel";
          mode = "644";
          count = 7;
          size = "10M";
          flags = [ "Z" "C" ];
          pidFile = "/var/run/myapp.pid";
          signal = "USR1";
        }
      ];
      system = [
        {
          logfilename = "/var/log/system.log";
          mode = "644";
          count = 5;
          when = "@T00";
          flags = [ "Z" ];
        }
      ];
    }