<commit_before>
var structuredLog = require('structured-log');
var consoleSink = require('structured-log/console-sink');

var log = structuredLog.configure()
	.minLevel('VERBOSE')
	.writeTo(consoleSink())
    .create();

log.info('Hello this is some information.');

log('Hello this is more information.');

log.warn('This is a warning.');

log.error('This is an error.');

log.verbose('This is verbose!');<commit_msg>Added example code like what is in the readme.<commit_after>
var structuredLog = require('../../src/core/structured-log');
var consoleSink = require('../../src/npm/console-sink');

var log = structuredLog.configure()
	.minLevel('VERBOSE')
	.writeTo(consoleSink())
    .create();

log.info('Hello this is some {info}.', 'information');

log('Hello this is more information.');

log.warn('This is a warning.');

log.error('This is an error.');

log.verbose('This is verbose!');

var position = { Latitude: 25, Longitude: 134 };
var elapsedMs = 34;

log.info("Processed {@Position} in {Elapsed} ms.", position, elapsedMs);
{'fraction_non_alphanumeric': 0.17839922854387658, 'fraction_numerical': 0.006750241080038573, 'mean_word_length': 4.864406779661017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5799001', 'n_tokens_mistral': 330, 'n_tokens_neox': 325, 'n_words': 92}