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 { FolderService } from './folder.service';
export { I18nService } from './i18n.service'; export { I18nService } from './i18n.service';
export { LockService } from './lock.service'; export { LockService } from './lock.service';
export { LogService } from './log.service';
export { MessagingService } from './messaging.service'; export { MessagingService } from './messaging.service';
export { PasswordGenerationService } from './passwordGeneration.service'; export { PasswordGenerationService } from './passwordGeneration.service';
export { PlatformUtilsService } from './platformUtils.service'; export { PlatformUtilsService } from './platformUtils.service';

View File

@ -1,7 +1,9 @@
import { LogLevelType } from '../enums/logLevelType';
export abstract class LogService { export abstract class LogService {
debug: (message: string) => void; debug: (message: string) => void;
info: (message: string) => void; info: (message: string) => void;
warning: (message: string) => void; warning: (message: string) => void;
error: (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 { DeviceType } from './deviceType';
export { EncryptionType } from './encryptionType'; export { EncryptionType } from './encryptionType';
export { FieldType } from './fieldType'; export { FieldType } from './fieldType';
export { LogLevelType } from './logLevelType';
export { SecureNoteType } from './secureNoteType'; export { SecureNoteType } from './secureNoteType';
export { TwoFactorProviderType } from './twoFactorProviderType'; export { TwoFactorProviderType } from './twoFactorProviderType';

View File

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