You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
931 B
37 lines
931 B
import path from "path"
|
|
|
|
export default function () {
|
|
return {
|
|
appenders: {
|
|
file: {
|
|
type: "file",
|
|
filename: path.resolve(__dirname, "../", "./log", "./Site.log"),
|
|
},
|
|
SQL: {
|
|
type: "file",
|
|
filename: path.resolve(__dirname, "../", "./log", "./SQL.log"),
|
|
},
|
|
console: {
|
|
type: "console",
|
|
},
|
|
},
|
|
categories: {
|
|
default: {
|
|
appenders: ["console"],
|
|
level: "all",
|
|
},
|
|
HAPI: {
|
|
appenders: ["console"],
|
|
level: "all",
|
|
},
|
|
Site: {
|
|
appenders: ["file", "console"],
|
|
level: "debug",
|
|
},
|
|
SQL: {
|
|
appenders: ["SQL"],
|
|
level: "debug",
|
|
},
|
|
},
|
|
}
|
|
}
|
|
|