log4js_config.json 1.47 KB
{
    "appenders": {
        "out": {
            "type": "stdout",
            "layout": {
                "type": "pattern",
                "pattern": "TIMESTAMP|%d{ISO8601}|LOGTYPE|%p|%m"
            }
        },
        "app": {
            "type": "file",
            "filename": "app/app.log",
            "layout": {
                "type": "pattern",
                "pattern": "TIMESTAMP|%d{ISO8601}|LOGTYPE|%p|%m"
            },
            "category": [
                "SRFc-app"
            ]
        },
        "access": {
            "type": "file",
            "filename": "access/access.log",
            "layout": {
                "type": "pattern",
                "pattern": "TIMESTAMP|%d{ISO8601}|LOGTYPE|%p|%m"
            },
            "category": [
                "SRFc-access"
            ]
        },
        "service": {
            "type": "file",
            "filename": "service/service.log",
            "layout": {
                "type": "pattern",
                "pattern": "TIMESTAMP|%d{ISO8601}|LOGTYPE|%p|%m"
            },
            "category": [
                "SRFc-service"
            ]
        }
    },
    "categories": {
        "default": {
            "appenders": ["out", "app"],
            "level": "debug"
        },
        "SRFc-access": {
            "appenders": ["out", "access"],
            "level": "info"
        }
        ,
        "SRFc-service": {
            "appenders": [ "out","service"],
            "level": "info"
        }
    }
}