This provides a useLogger hook that can be used in packages and applications. Currently, it just uses a default of console logging, providing info, log, warn and error functions. Going forward, I'll add a logging package as a dependency to allow logs to be turned on and off via configuration setting (this is the main point of this library existing).
create a useLogger hook and a createLogger factory function
This provides a
useLogger
hook that can be used in packages and applications. Currently, it just uses a default of console logging, providinginfo
,log
,warn
anderror
functions. Going forward, I'll add a logging package as a dependency to allow logs to be turned on and off via configuration setting (this is the main point of this library existing).