mirror of
https://github.com/pockethost/pockethost.git
synced 2025-05-25 16:26:46 +00:00
13 lines
282 B
TypeScript
13 lines
282 B
TypeScript
import { LoggerService, LogLevelName } from 'pockethost/common'
|
|
import { PUBLIC_DEBUG } from './env'
|
|
|
|
// Initiate the logging service
|
|
// TODO: Document this
|
|
try {
|
|
LoggerService()
|
|
} catch {
|
|
LoggerService({
|
|
level: PUBLIC_DEBUG ? LogLevelName.Debug : LogLevelName.Info,
|
|
})
|
|
}
|