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.
|
|
|
### Logging.
|
|
|
|
|
|
|
|
- `fatalIf` - wrapper function which takes error and prints jsonic error messages.
|
|
|
|
- `errorIf` - similar to fatalIf but doesn't exit on err != nil.
|
|
|
|
|
|
|
|
Supported logging targets.
|
|
|
|
|
|
|
|
- console
|
|
|
|
- file
|
|
|
|
- syslog
|
|
|
|
|
|
|
|
Sample logger section from `~/.minio/config.json`
|
|
|
|
```
|
|
|
|
"console": {
|
|
|
|
"enable": true,
|
|
|
|
"level": "error"
|
|
|
|
},
|
|
|
|
"file": {
|
|
|
|
"enable": false,
|
|
|
|
"fileName": "",
|
|
|
|
"level": "error"
|
|
|
|
},
|
|
|
|
"syslog": {
|
|
|
|
"enable": false,
|
|
|
|
"address": "",
|
|
|
|
"level": "error"
|
|
|
|
}
|
|
|
|
```
|