where do i turn off console log for info and debug items?



  • I'm wondering if some of the speed issues I'm seeing is because there are thousands of console messages when I run a report with a large data set. Where can I turn them off?


  • administrators

    i don't think the speed issues is caused by the logging but you can try without the logs if you have some concerns about it.

    here are some details about how to configure the logs https://jsreport.net/learn/configuration#logging-configuration

    if you don't want debug logs then you can put something like this in your config:

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

Log in to reply
 

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