Revize 5849958b
Přidáno uživatelem Ondřej Váně před asi 4 roky(ů)
fe/fulltextsearch/src/app/components/pages/browse/browse.component.ts | ||
---|---|---|
1 | 1 |
import { Component, OnInit } from '@angular/core'; |
2 |
import {DocumentResponse} from '../../../model/DocumentResponse'; |
|
3 |
import {QueryService} from '../../../services/query.service'; |
|
2 |
import { DocumentResponse } from '../../../model/DocumentResponse'; |
|
3 |
import { QueryService } from '../../../services/query/query.service'; |
|
4 |
import { LoggerService } from '../../../services/logger/logger.service'; |
|
4 | 5 |
|
5 | 6 |
@Component({ |
6 | 7 |
selector: 'app-browse', |
... | ... | |
10 | 11 |
export class BrowseComponent implements OnInit { |
11 | 12 |
documents: DocumentResponse[] = null; |
12 | 13 |
|
13 |
constructor( private queryService: QueryService ) { } |
|
14 |
constructor( private queryService: QueryService, private LOGGER: LoggerService ) { }
|
|
14 | 15 |
|
15 | 16 |
ngOnInit(): void { |
17 |
this.LOGGER.info('browse component on init'); |
|
16 | 18 |
this.queryService.getDocuments().subscribe( documents => { |
17 | 19 |
this.documents = documents; |
18 | 20 |
}); |
Také k dispozici: Unified diff
Re #7816: Logování ve FE
- přidána service pro logování
- implementovány log levely: INFO, WARN, DEBUG, ERROR
- návod na wiki v záložce Nástroje -> logování FE