From 4cf536c30b251d8f4ad80a0d1f8328063558b00a Mon Sep 17 00:00:00 2001 From: Domink Sigmund <sigmund.dominik@googlemail.com> Date: Wed, 26 Sep 2018 15:35:48 +0200 Subject: [PATCH] Nicer Readme --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 944c3ef..e1e23a8 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,20 @@ A real simple logger application ## Usage - - `const log = require('log')(options)` Note: The options Part may be omitted, as all parts are optional, but using the name is recommended, as without it, the folder-name will be used -Options: +### Methods + +`log.info('This is an Information')` +`log.warn('This is a Warning')` +`log.error('This is an Error')` +`log.debug('This is a Debug Message')` + +### Options +```json { name: 'Name of App', hostname: 'Server Hostname', @@ -26,4 +32,5 @@ Options: port: 'graylog-port' } ] -} \ No newline at end of file +} +``` \ No newline at end of file -- GitLab