Skip to content

Commit

Permalink
[DOCS]: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasszoke committed May 25, 2018
1 parent d219b0e commit 5fd07f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Expand Up @@ -15,17 +15,19 @@ A tiny library that creates beautiful logging.

Prints your message, time and position in the code:

eyecatcher.log('Hello World!');
eyecatcher.info('Hello Info!');
eyecatcher.warn('Hello Warn!');
eyecatcher.error('Hello Error!');
eyecatcher.log('Log', 'example');
eyecatcher.info('Info', 'example');
eyecatcher.warn('Warning example');
eyecatcher.error('Error example');

Prints a block with your message:

eyecatcher.logBlock('Hello Big World!');
eyecatcher.infoBlock('Hello Big Info!');
eyecatcher.warnBlock('Hello Big Warn!');
eyecatcher.errorBlock('Hello Big Error!');
eyecatcher.logBlock('Log block example');
eyecatcher.infoBlock('Info block example. Array:', yourArray);
eyecatcher.warnBlock('Warning block example. JSON:', yourJson);
eyecatcher.errorBlock('Error block example.');

You can use an array or an object.

## Examples

Expand Down
Binary file modified docs/eyecatcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5fd07f4

Please sign in to comment.