<commit_before>megalogger
==========

Minimalistic JavaScript logging framework, specifically usable for the browser console<commit_msg>added readme info for the new localStorage/sessionStorage.d flag;<commit_after>megalogger
==========

Minimalistic JavaScript logging framework, specifically usable for the browser console

Basic Configuration
-----------

Since typically logging output should be disabled in production apps, to see logging data you need to enable development mode
and set a minimum log level, after which, messages would be shown.

You can do that by setting the following localStorage (or sessionStorage) variables:

    // Set minimum log level - all levels can be found in MegaLogger.LEVELS
    localStorage.minLogLevel = 10;

    // Enable "development mode", to allow log messages to be shown in your console
    localStorage.d = 1; // to disable it, just do a localStorage.removeItem("d");

Tip: To achieve maximum performance, the MegaLogger is in fact going to cache the localStorage/sessionStorage.* vars,
so those *SHOULD BE SET* before calling ANY MegaLogger methods.
{'fraction_non_alphanumeric': 0.0746132848043676, 'fraction_numerical': 0.00272975432211101, 'mean_word_length': 4.612244897959184, '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': '4565837', 'n_tokens_mistral': 271, 'n_tokens_neox': 252, 'n_words': 135}