Logging

This is our simple wrapper for console which allows naming the log context and supports log levels.

It works full stack both on NodeJS and browser.

Example

import LogService from "./src/hg/core/LogService";

const LOG = LogService.createLogger("FooService");

export class FooService {
    run(arg: string) {
        LOG.debug("Did something: ", arg);
    }
}