I would like to write the output of console.log in file.
I understand that the output of sync function is write in sg_info.log when a console.log function is discover.
But on SG 2.6, that’s not working (Linux Os).
anybody can help me?
Sync function :
“sync”:
function (doc, oldDoc) { console.log("################# LOG TEST CONSOLE ######"); }
Logging configuration :
“logging”: {
“log_file_path”: “/var/log/sync_gateway”,
“console”: {
“log_keys”: [“HTTP+”, “Sync”, “SyncMsg”],
“log_level”: “debug”,
“color_enabled”: true
},
“info”: {
“enabled”: true
},
“debug”: {
“enabled”: true
}
}