[英]Ngx-logger implementation in angular 8
I am implementing ngx-logger in my angular application and I am following this link to implement it.我正在我的 angular 应用程序中实现 ngx-logger,我正在按照此链接实现它。
In this link full logger code is at component level.在此链接中,完整的记录器代码位于组件级别。
Just want to know do I need to implement anything related to logging in my html pages or procedure given in above link is sufficient?只是想知道我是否需要实现与登录我的 html 页面或上述链接中给出的程序相关的任何内容就足够了?
Article does not cover Testing part.文章不包括测试部分。
In your spec
files you need:在您的spec
文件中,您需要:
import { LoggerTestingModule } from 'ngx-logger/testing';
and add LoggerTestingModule
to TestBed
imports
.并将LoggerTestingModule
添加到TestBed
imports
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.