aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/src
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-02 19:15:01 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-09 10:41:17 -0700
commit5ca3770fb0e252e4ca9ec12c221202da9b666ad6 (patch)
treec5e1a791f00a01848feaf3f230af84df8dad08de /apps/files_reminders/src
parente6cbb381752fd0c13cefcd66610fb00d71868b67 (diff)
downloadnextcloud-server-5ca3770fb0e252e4ca9ec12c221202da9b666ad6.tar.gz
nextcloud-server-5ca3770fb0e252e4ca9ec12c221202da9b666ad6.zip
feat(files_reminders): add logger
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_reminders/src')
-rw-r--r--apps/files_reminders/src/shared/logger.ts28
1 files changed, 28 insertions, 0 deletions
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 <chrng8@gmail.com>
+ *
+ * @author Christopher Ng <chrng8@gmail.com>
+ *
+ * @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 <http://www.gnu.org/licenses/>.
+ *
+ */
+
+import { getLoggerBuilder } from '@nextcloud/logger'
+
+export const logger = getLoggerBuilder()
+ .setApp('files_reminders')
+ .detectUser()
+ .build()