summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-08-02 19:15:01 -0700
committerAndy Scherzinger <info@andy-scherzinger.de>2023-08-10 12:28:19 +0200
commit1af7287490e473ed2a427e5e2355435da0b74217 (patch)
tree2caa0a3cfb812be47d187c4a77c684225ccc843f
parentc2be544c41aa81750b54029ff9007af2dedd0b2c (diff)
downloadnextcloud-server-1af7287490e473ed2a427e5e2355435da0b74217.tar.gz
nextcloud-server-1af7287490e473ed2a427e5e2355435da0b74217.zip
feat(files_reminders): add logger
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 5ca3770fb0e252e4ca9ec12c221202da9b666ad6)
-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()