Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@instaffogmbh/make-prefixed-logger

instaffo2MIT0.1.1

Log arguments with your prefixes prefixed.

readme



@instaffogmbh/make-prefixed-logger

Log arguments with your prefixes prefixed.

API

This module exports one function:

const pl = makePrefixedLogger(origLogger[, ...prefixArgs])

Returns a function that concatenates all its arguments to the prefixArgs, then proxies the combined arguments to origLogger. Similarly, pl will carry proxy methods for all methods found on origLogger.

 

License

MIT