refactor: daily notes (#1901)
This commit is contained in:
17
packages/web/src/javascripts/Logging.ts
Normal file
17
packages/web/src/javascripts/Logging.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { log as utilsLog } from '@standardnotes/utils'
|
||||
|
||||
export enum LoggingDomain {
|
||||
DailyNotes,
|
||||
}
|
||||
|
||||
const LoggingStatus: Record<LoggingDomain, boolean> = {
|
||||
[LoggingDomain.DailyNotes]: false,
|
||||
}
|
||||
|
||||
export function log(domain: LoggingDomain, ...args: any[]): void {
|
||||
if (!LoggingStatus[domain]) {
|
||||
return
|
||||
}
|
||||
|
||||
utilsLog(LoggingDomain[domain], ...args)
|
||||
}
|
||||
Reference in New Issue
Block a user