HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/files.wb-cloud.nl/public_html/apps/logreader/lib/Constants.php
<?php

declare(strict_types=1);
/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */


namespace OCA\LogReader;

// !! Keep in sync with src/constants.ts
class Constants {
	// Used config Keys

	/**
	 * Logging levels to show, used for filtering
	 */
	public const CONFIG_KEY_SHOWNLEVELS = 'shownLevels';
	/**
	 * The backend logging level
	 */
	public const CONFIG_KEY_LOGLEVEL = 'logLevel';
	/**
	 * Display format of the timestamp
	 */
	public const CONFIG_KEY_DATETIMEFORMAT = 'dateTimeFormat';
	/**
	 * If relative dates should be shown for the timestamp (e.g. '3 hours ago')
	 */
	public const CONFIG_KEY_RELATIVEDATES = 'relativedates';
	/**
	 * If automatic updates of the UI are enabled (polling for new entries)
	 */
	public const CONFIG_KEY_LIVELOG = 'liveLog';

	/**
	 * All valid config keys
	 */
	public const CONFIG_KEYS = [
		self::CONFIG_KEY_SHOWNLEVELS,
		self::CONFIG_KEY_LOGLEVEL,
		self::CONFIG_KEY_DATETIMEFORMAT,
		self::CONFIG_KEY_RELATIVEDATES,
		self::CONFIG_KEY_LIVELOG,
	];

	// other constants
	public const LOGGING_LEVELS = [0, 1, 2, 3, 4];
	public const LOGGING_LEVEL_NAMES = [
		'debug',
		'info',
		'warn',
		'error',
		'fatal',
	];
}