Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-07-04 18:13:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-07-04 18:13:36 +0300
commitaca9da34209cb67d288ecc39a2dcb89bbedeba9b (patch)
tree5a299e086d8cf886268e059c2c335facf2882a64 /src
parent7af4766eb8eb2025f21d6e0d5bd4d188686effba (diff)
Add nextcloud-logging
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r--src/logger.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/logger.js b/src/logger.js
new file mode 100644
index 000000000..45c7d6901
--- /dev/null
+++ b/src/logger.js
@@ -0,0 +1,28 @@
+/*
+ * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * 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'
+import {getCurrentUser} from 'nextcloud-auth'
+
+export default getLoggerBuilder()
+ .setApp('mail')
+ .setUid(getCurrentUser().uid)
+ .build()