summaryrefslogtreecommitdiffstats
path: root/documentation/articles/IBGettingStartedWithVaadinSpringWithoutSpringBoot.asciidoc
Commit message (Collapse)AuthorAgeFilesLines
* Fix asciidocs headings H1elmot2018-05-041-2/+1
|
* Add headers to community articles (#10028)Henri Muurimaa2017-09-201-0/+6
|
* Replace wiki links with vaadin.github.io/spring-tutorialErik Lumme2017-09-121-6/+3
|
* Migrate IBGettingStartedWithVaadinSpringWithoutSPringBootErik Lumme2017-09-121-0/+226
ad Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/logger.js
blob: 78d51a798e4bd1736c88a89f0615b71664f8b6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

import { getCurrentUser } from '@nextcloud/auth'
import { getLoggerBuilder } from '@nextcloud/logger'

const getLogger = user => {
	if (user === null) {
		return getLoggerBuilder()
			.setApp('core')
			.build()
	}
	return getLoggerBuilder()
		.setApp('core')
		.setUid(user.uid)
		.build()
}

export default getLogger(getCurrentUser())

export const unifiedSearchLogger = getLoggerBuilder()
	.setApp('unified-search')
	.detectUser()
	.build()