### ----------------------------------------------------
### -- LogP6
### -- Licenses: Artistic-2.0
### -- Authors: Mikhail Khorkov
### -- File: t/resource/00-config-file/log-p6-file-writes.json
### ----------------------------------------------------
{
	"default-pattern": "%msg",
	"default-auto-exceptions": false,
	"default-handle": {
		"type": "std",
		"path": "err"
	},
	"default-x-pattern": "%x\\n%x\\a%x\\e%x",
	"default-level":  "trace",
	"default-first-level-check": true,
	"default-wrapper": {
		"type": "time",
		"seconds": 60,
		"config-path": "./t/resource/00-config-file/log-p6-1.json"
	},
	"writers": [
		{
			"type": "std",
			"name": "w1",
			"pattern": "%msg",
			"handle": {
				"type": "file",
				"path": "/tmp/logp6/empty1.txt",
				"out-buffer": false,
				"append": false
			},
			"auto-exceptions": true
		},
		{
			"type": "std",
			"name": "w2",
			"pattern": "%level | %msg",
			"handle": {
				"type": "std",
				"path": "out",
				"out-buffer": 100
			},
			"auto-exceptions": false
		},
		{
			"type": "std",
			"name": "w3",
			"handle": {
				"type": "std",
				"path": "err"
			}
		},
		{
			"type": "std",
			"name": "w4",
			"handle": {
				"type": "custom",
				"require": "Custom",
				"fqn-method": "Custom::EXPORT::DEFAULT::&handle1",
				"args": {
					"file-name": "/tmp/logp6/empty4.txt"
				}
			}
		},
		{
			"type": "custom",
			"require": "Custom",
			"fqn-method": "Custom::EXPORT::DEFAULT::&writer",
			"args": {
				"name": "w5"
			}
		},
		{
			"type": "std",
			"name": "w6",
			"handle": {
				"type": "file",
				"path": "/tmp/logp6/empty6.txt",
				"out-buffer": 1000
			},
			"auto-exceptions": true
		},
		{
			"type": "std",
			"name": "w7",
			"handle": {
				"type": "custom",
				"require": "Custom",
				"fqn-method": "Custom::EXPORT::DEFAULT::&handle2",
				"positional": [ "1", 2 ],
				"args": {
					"file-name": "/tmp/logp6/empty7.txt"
				}
			}
		}
	]
}


