Changing the sync_gateway log directory


#1

for changing the log path in the sync_gateway , I change in the configuration file , But my log location is not change . Here the step that I follow -

“logging”: {
“log_file_path”: “C:\Program Files\Couchbase\Sync Gateway\var\log\sync_gateway”,
“console”: {
“log_level”: “none”
},
“error”: {
“rotation”: {
“max_size”: 1,
“max_age”: 180
},
“warn”: {
“rotation”: {
“max_size”: 1,
“max_age”: 90
},
“info”: {
“rotation”: {
“max_size”: 1,
“max_age”: 3
}
}


#2

Hi,

Backslashes in JSON need to be escaped. E.g:

“log_file_path”: “C:\\Program Files\\Couchbase\\Sync Gateway\\var\\log\\sync_gateway”,