All Projects β†’ avatsaev β†’ ngx-log-monitor

avatsaev / ngx-log-monitor

Licence: MIT license
NGX Log Monitor - Log Monitoring Component for Angular

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ngx-log-monitor

AngularAI
πŸ’¬ Angular 6 AI (localhost version is working correctly)
Stars: ✭ 50 (+51.52%)
Mutual labels:  rxjs, angular6
Angular Interview Questions
List of 300 Angular Interview Questions and answers
Stars: ✭ 2,264 (+6760.61%)
Mutual labels:  rxjs, angular6
Angular-Reactive-Demo-Shop
Angular Demo Shop
Stars: ✭ 79 (+139.39%)
Mutual labels:  rxjs, angular6
recks
🐢 React-like RxJS-based framework
Stars: ✭ 133 (+303.03%)
Mutual labels:  rxjs
ngx-quill-lite
A light weight Angular wrapper of Quilljs, powerful rich text editor
Stars: ✭ 20 (-39.39%)
Mutual labels:  angular6
angular-youtube-player
Simple youtube player created with angular and typescript. See demo.
Stars: ✭ 35 (+6.06%)
Mutual labels:  angular6
data-flow
frontend data flow explored in React
Stars: ✭ 19 (-42.42%)
Mutual labels:  rxjs
reactorx
mv core to https://github.com/querycap/webappkit
Stars: ✭ 16 (-51.52%)
Mutual labels:  rxjs
NodeAngular
πŸš€ Full Stack Framework BΓ©ta : mean with last Angular and Node (Example)
Stars: ✭ 13 (-60.61%)
Mutual labels:  angular6
reactive-graphql
A GraphQL implementation based around RxJS, very well suited for client side only GraphQL usage
Stars: ✭ 58 (+75.76%)
Mutual labels:  rxjs
rxact
Rxact is an observable application management for Javascript app
Stars: ✭ 21 (-36.36%)
Mutual labels:  rxjs
pg-reactive
PostgreSQL + RxJS = pg-reactive
Stars: ✭ 38 (+15.15%)
Mutual labels:  rxjs
from-event
🦊 ViewChild and FromEvent β€” a Match Made in Angular Heaven
Stars: ✭ 130 (+293.94%)
Mutual labels:  rxjs
ngx-loading-mask
Angular 5+ simple loading-mask ui component.
Stars: ✭ 22 (-33.33%)
Mutual labels:  angular6
vue-next-rx
RxJS integration for Vue next
Stars: ✭ 31 (-6.06%)
Mutual labels:  rxjs
angular6-httpclient-example
Angular 6 HttpClient: Consume RESTful API Example
Stars: ✭ 38 (+15.15%)
Mutual labels:  angular6
angular-infinite-scroller
No description or website provided.
Stars: ✭ 45 (+36.36%)
Mutual labels:  rxjs
angularx-qrcode-sample-app
Angular5/6/7/8/9/10+ sample apps with working implementations of angularx-qrcode
Stars: ✭ 15 (-54.55%)
Mutual labels:  angular6
spring-boot-angular6-maven-project
Build and package spring boot and angular6 into a deployable war file
Stars: ✭ 74 (+124.24%)
Mutual labels:  angular6
monogram
Aspect-oriented layer on top of the MongoDB Node.js driver
Stars: ✭ 76 (+130.3%)
Mutual labels:  rxjs

NGX Log Monitor - Log Monitoring Component for Angular

DEMO: https://ngx-log-monitor.surge.sh

Installation and setup

Install:

npm i -S ngx-log-monitor

Import the module:

import {LogMonitorModule} from 'ngx-log-monitor';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    LogMonitorModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }

Usage example

Log Message interface:

interface LogMessage {
  type?: 'LOG' | 'INFO' | 'WARN' | 'ERR' | 'SUCCESS';
  timestamp?: string;
  message: string;
}
  • If the type isn't set, 'LOG' type will be used as default
  • If timestamp isn't set, current locale date will be used
import {LogMessage as NgxLogMessage} from 'ngx-log-monitor';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent{

  restoredLogs: NgxLogMessage[] = [
    {message: 'A simple restored log message'},
    {message: 'A success restored message', type: 'SUCCESS'},
    {message: 'A warning restored message', type: 'WARN'},
    {message: 'An error restored message', type: 'ERR'},
    {message: 'An info restored message', type: 'INFO'},
  ];

  logs: NgxLogMessage[] = [
    {message: 'A simple log message'},
    {message: 'A success message', type: 'SUCCESS'},
    {message: 'A warning message', type: 'WARN'},
    {message: 'An error message', type: 'ERR'},
    {message: 'An info message', type: 'INFO'},
  ];

  logStream$ = timer(0, 1000).pipe(
    take(this.logs.length),
    map(i => this.logs[i])
  );

}
<log-monitor
    [logStream]="logStream$ | async"
    theme="dark"
    title="NGRX action dispatch logs"
    [animated]="true"
    [icons]="true"
    [history]="restoredLogs" 
></log-monitor>

logStream$ must be an observable that emits object literals conform to the LogMessage interface

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].