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.
39 lines
1.1 KiB
39 lines
1.1 KiB
6 years ago
|
{
|
||
|
watch: {
|
||
|
paths: ["../../", "doesnotexist"]
|
||
|
maxFile: 5
|
||
|
pattern: server
|
||
|
verbose: true
|
||
|
catchSignal: false
|
||
|
}
|
||
|
|
||
|
log: {
|
||
|
#Known types: console, file, sql
|
||
|
type: console, sql
|
||
|
console: {
|
||
|
# use default options
|
||
|
}
|
||
|
|
||
|
|
||
|
#for file (uncomment type)
|
||
|
# type: file
|
||
|
file: {
|
||
|
name: ./applog.log
|
||
|
append: true
|
||
|
}
|
||
|
|
||
|
#for sql (uncomment type)
|
||
|
# SQLite -> driver: sqlite3
|
||
|
# PostgreSQL -> driver: postgres
|
||
|
# type: sql
|
||
|
sql: {
|
||
|
driver: sqlite3
|
||
|
connection: ./applog.sqlite
|
||
|
maxIdle: 10 #Max jumlah koneksi idle
|
||
|
maxOpen: 10 #Max jumlah koneksi open
|
||
|
maxLifetime: 60 #Maximum lifetime (dalam detik)
|
||
|
createQuery: CREATE TABLE applog(id INTEGER PRIMARY KEY AUTOINCREMENT, ts DATETIME, app VARCHAR(100), content TEXT)
|
||
|
insertQuery: INSERT INTO applog(ts, app, content) VALUES(?, ?, ?)
|
||
|
}
|
||
|
}
|
||
|
}
|