0.1.1 • Published 7 years ago

@instaffogmbh/make-prefixed-logger v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 years ago

@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

0.1.1

7 years ago

0.1.0

7 years ago