From 1af7287490e473ed2a427e5e2355435da0b74217 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 2 Aug 2023 19:15:01 -0700 Subject: [PATCH] feat(files_reminders): add logger Signed-off-by: Christopher Ng (cherry picked from commit 5ca3770fb0e252e4ca9ec12c221202da9b666ad6) --- apps/files_reminders/src/shared/logger.ts | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 apps/files_reminders/src/shared/logger.ts diff --git a/apps/files_reminders/src/shared/logger.ts b/apps/files_reminders/src/shared/logger.ts new file mode 100644 index 00000000000..116acf0c81e --- /dev/null +++ b/apps/files_reminders/src/shared/logger.ts @@ -0,0 +1,28 @@ +/** + * @copyright 2023 Christopher Ng + * + * @author Christopher Ng + * + * @license AGPL-3.0-or-later + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +import { getLoggerBuilder } from '@nextcloud/logger' + +export const logger = getLoggerBuilder() + .setApp('files_reminders') + .detectUser() + .build() -- 2.39.5