Skip to content

Instantly share code, notes, and snippets.

@adrianfaciu
Last active August 1, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianfaciu/eead8773ac3fa4bdb671cbae208e177b to your computer and use it in GitHub Desktop.
Save adrianfaciu/eead8773ac3fa4bdb671cbae208e177b to your computer and use it in GitHub Desktop.
import { Action } from '@ngrx/store';
export const LOG_ERROR = '[Logger] Log Error';
export const LOG_WARNING = '[Logger] Log Warning';
export const LOG_INFO = '[Logger] Log Info';
export class LogError implements Action {
readonly type = LOG_ERROR;
constructor(readonly payload: { message: string }) { }
}
export class LogWarning implements Action {
readonly type = LOG_WARNING;
constructor(readonly payload: { message: string }) { }
}
export class LogInfo implements Action {
readonly type = LOG_INFO;
constructor(readonly payload: { message: string }) { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment