-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79b4793
commit 5d18602
Showing
2 changed files
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
import { IsNotEmpty, IsOptional, IsString } from 'class-validator'; | ||
import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator'; | ||
|
||
const ALLOWED_VALUES: string[] = ['debug', 'info', 'warn', 'notice', 'warning', 'error', 'crit', 'alert', 'emerg']; | ||
|
||
export class LoggingConfig { | ||
@IsString() | ||
|
||
@IsNotEmpty() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly DEFAULT_LOG_LEVEL!: string; | ||
|
||
//Domain Modules | ||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly PERSON_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly ORGANISATION_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly ROLLE_MODULE_LOG_LEVEL?: string; | ||
|
||
//API Modules | ||
@IsOptional() | ||
@IsString() | ||
public readonly PERSON_API_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
public readonly ORGANISATION_API_MODULE_LOG_LEVEL?: string; | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly PERSON_API_MODULE_LOG_LEVEL!: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly ROLLE_API_MODULE_LOG_LEVEL?: string; | ||
|
||
//Technical Modules | ||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly SERVER_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly KEYCLOAK_ADMINISTRATION_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly HEALTH_MODULE_LOG_LEVEL?: string; | ||
|
||
//SPSH Modules | ||
@IsOptional() | ||
@IsString() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly BACKEND_FOR_FRONTEND_MODULE_LOG_LEVEL?: string; | ||
|
||
@IsString() | ||
@IsOptional() | ||
@IsEnum(ALLOWED_VALUES) | ||
public readonly UI_BACKEND_MODULE_LOG_LEVEL?: string; | ||
} |