WordPress-Simple-History icon indicating copy to clipboard operation
WordPress-Simple-History copied to clipboard

Add logger examples to getInfo() method

Open bonny opened this issue 1 year ago • 0 comments

Add an 'examples' key to the array returned by getInfo() for each logger. This information can be used to generate documentation on simple-history.com.

Example from SimpleUserLogger:

	'examples' => array(
		array(
			'description' => 'User fails to login',
			'message' => 'user_login_failed',
			'context' => array(
				'login' => '[email protected]',
			),
		),

bonny avatar Jul 10 '22 15:07 bonny