log level

This commit is contained in:
richard-loafle 2020-02-06 13:15:31 +09:00
parent f615979b44
commit bba8e0047b

View File

@ -9,7 +9,9 @@ import { TranslateService as UCapTranslateService } from '@ucap-webmessenger/ui'
import { DateService as UCapDateService } from '@ucap-webmessenger/ui';
import { TranslateService } from '@ngx-translate/core';
import { EnviromentsService } from '@ucap-webmessenger/enviroments';
import { NGXLogger } from 'ngx-logger';
import { NGXLogger, NgxLoggerLevel } from 'ngx-logger';
import { environment } from '../../environments/environment';
@Injectable()
export class AppService {
@ -33,6 +35,10 @@ export class AppService {
this.ucapDateService.setDefaultTimezone('Asia/Seoul');
this.ucapDateService.use('Asia/Seoul');
this.ucapDateService.setLocale(this.translateService.currentLang);
this.logger.updateConfig({
level: environment.production ? NgxLoggerLevel.WARN : NgxLoggerLevel.DEBUG
});
}
public postInit(): Promise<any> {