import debug , { Debugger } from "debug" ; export function createLogger ( name ) { return debug ( `datastore:${ name }` ) ; } export function enableLogger ( ) { if ( window ?. localStorage ) { window . localStorage . setItem ( "debug" , "datastore:*" ) ; } }