This commit is contained in:
darenhsu
2022-07-17 13:16:16 +08:00
parent 84759556ff
commit befd344ab0
28070 changed files with 4008428 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
import Consola from './consola.js'
import BrowserReporter from './reporters/browser.js'
import { LogLevel } from './logLevels'
function createConsola () {
const consola = new Consola({
reporters: [
new BrowserReporter()
]
})
// Expose constructors
consola.Consola = Consola
consola.LogLevel = LogLevel
consola.BrowserReporter = BrowserReporter
return consola
}
export default (typeof window !== 'undefined' && window.consola) || createConsola()