fix(core): update

This commit is contained in:
2018-11-04 18:44:28 +01:00
parent 76d3926ba4
commit a8bac181a4
5 changed files with 26 additions and 17 deletions

View File

@@ -6,6 +6,11 @@ import { TLogLevel, TEnvironment, ILogPackage } from '@pushrocks/smartlog-interf
* the constructor options for LogdnaMessage
*/
export interface ILogdnaMessageContructorOptions {
/**
* a timestamp for then the log message was created
*/
timestamp: number;
/**
* the hostname where the log message was created
*/
@@ -62,6 +67,7 @@ export class LogdnaMessage {
*/
static fromSmartLogPackage(smartlogPackageArg: ILogPackage): LogdnaMessage {
return new LogdnaMessage({
timestamp: smartlogPackageArg.timestamp,
line: smartlogPackageArg.message,
meta: {
...smartlogPackageArg.context,