1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-29 11:22:30 +01:00

log level type

This commit is contained in:
Kyle Spearrin 2018-02-23 23:10:13 -05:00
parent 9adabdab48
commit b747830c5b
4 changed files with 11 additions and 1 deletions

View File

@ -8,6 +8,7 @@ export { EnvironmentService } from './environment.service';
export { FolderService } from './folder.service';
export { I18nService } from './i18n.service';
export { LockService } from './lock.service';
export { LogService } from './log.service';
export { MessagingService } from './messaging.service';
export { PasswordGenerationService } from './passwordGeneration.service';
export { PlatformUtilsService } from './platformUtils.service';

View File

@ -1,7 +1,9 @@
import { LogLevelType } from '../enums/logLevelType';
export abstract class LogService {
debug: (message: string) => void;
info: (message: string) => void;
warning: (message: string) => void;
error: (message: string) => void;
write: (type: string, message: string) => void;
write: (level: LogLevelType, message: string) => void;
}

View File

@ -2,5 +2,6 @@ export { CipherType } from './cipherType';
export { DeviceType } from './deviceType';
export { EncryptionType } from './encryptionType';
export { FieldType } from './fieldType';
export { LogLevelType } from './logLevelType';
export { SecureNoteType } from './secureNoteType';
export { TwoFactorProviderType } from './twoFactorProviderType';

View File

@ -0,0 +1,6 @@
export enum LogLevelType {
Debug,
Info,
Warning,
Error,
}