Jsreport writing logs to the file even after removing file transport from jsreport.config.json



  • I wanted to remove the logs written to the file logs/reporter.logs as they are collected from the console itself. So, I removed the file logging from the jsreport.config.json, removed the logs folder and restarted the server but I see the logs/reporter.log again.
    Here is my config file.

    {
      "extensions": {
        "authentication": {
          "cookieSession": {
            "secret": "<your strong secret here>"
          },
          "admin": {
            "username": "admin",
            "password": "password"
          },
          "enabled": false
        },
        "scripts": {
          "timeout": 40000,
          "strategy": "http-server",
          "numberOfWorkers": 2
        },
        "sample-template": {
          "createSamples": false
        }
      },
      "httpPort": 8088,
      "store": {
        "provider": "fs"
      },
      "blobStorage": {
        "provider": "fs"
      },
      "logger": {
        "console": {
          "transport": "console",
          "level": "debug"
        }
      },
      "allowLocalFilesAccess": true,
      "templatingEngines": {
        "timeout": 10000,
        "strategy": "http-server",
        "numberOfWorkers": 2
      },
      "chrome": {
        "timeout": 40000,
        "strategy": "chrome-pool",
        "numberOfWorkers": 2
      },
      "tasks": {
        "timeout": 40000,
        "strategy": "http-server",
        "numberOfWorkers": 2
      }
    }
    


  • Same here on IIS.



  • Hi, this should work

      "logger": {
        "console": {
          "transport": "console",
          "level": "debug"
        },
        "file": {
          "silent": true
        },
        "error": {
          "silent": true
        }
      }
    


  • Thanks that worked :)


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.