UNPKG

@devgalena/react-use-logger

Version:

`react-use-logger` is a React hook to log messages. It also contains a function `useLogger` and a class `LoggingContextProvider` to set the logging levels of the library / application

7 lines (6 loc) 149 B
import { createContext as t, useContext as o } from "react"; const e = t(null), g = () => o(e); export { e as LoggingContext, g as useLogging };