<?php

/**
 * Logging configs.
 *
 * @package PDFDraft
 */

return array(
	'default'  => 'daily',
	'channels' => array(
		'single'    => array(
			'driver' => 'single',
			'path'   => wp_upload_dir()['basedir'] . '/pdfdraft/logs/pdfdraft.log',
			'level'  => 'debug',
		),

		'daily'     => array(
			'driver' => 'daily',
			'path'   => wp_upload_dir()['basedir'] . '/pdfdraft/logs/pdfdraft.log',
			'level'  => 'debug',
			'days'   => 14,
		),

		'syslog'    => array(
			'driver' => 'syslog',
			'level'  => 'debug',
		),

		'errorlog'  => array(
			'driver' => 'errorlog',
			'level'  => 'debug',
		),

		'null'      => array(
			'driver' => 'null',
		),

		'emergency' => array(
			'driver' => 'single',
			'path'   => wp_upload_dir()['basedir'] . '/pdfdraft/logs/emergency.log',
			'level'  => 'emergency',
		),
	),
	'levels'   => array(
		'emergency' => 0,
		'alert'     => 1,
		'critical'  => 2,
		'error'     => 3,
		'warning'   => 4,
		'notice'    => 5,
		'info'      => 6,
		'debug'     => 7,
	),
);
