UNPKG

abby-client

Version:

[![Coverage Status](https://coveralls.io/repos/github/GreetzNL/abby-client/badge.svg)](https://coveralls.io/github/GreetzNL/abby-client) [![Build Status](https://travis-ci.com/GreetzNL/abby-client.svg?token=n8i4tz6gpgW4zgU5pvDP&branch=master)](https://tra

32 lines (24 loc) 508 B
class Logger { constructor(transport = console) { this.transport = transport; } transport(logger) { this.transport = logger; } warn(data) { this.transport.warn(data); } log(data) { this.transport.log(data); } debug(data) { this.transport.debug(data); } error(data) { this.transport.error(data); } static instance(logger = console) { return new Logger(logger); } } module.exports = Logger;