mirror of
https://github.com/standardnotes/app
synced 2026-10-17 21:03:40 -04:00
refactor: daily notes (#1901)
This commit is contained in:
@@ -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