smartlog-destination-local/ts/beautylog.remote.ts

18 lines
395 B
TypeScript
Raw Normal View History

2017-01-21 00:05:28 +00:00
import * as plugins from './beautylog.plugins'
2016-07-23 23:17:38 +00:00
2017-01-21 22:12:39 +00:00
export interface ILogMethod {
(logType: string, logMessage: string): void
2016-07-23 23:17:38 +00:00
}
2017-01-21 22:12:39 +00:00
export interface IBeautyRemote {
log: ILogMethod
2016-07-23 23:17:38 +00:00
}
2017-01-21 22:12:39 +00:00
export let remoteArray: IBeautyRemote[] = []
export let remoteLog = (logType: string, logMessage: string) => {
for (let beautyremote of remoteArray) {
beautyremote.log(logType, logMessage)
}
2017-01-21 00:05:28 +00:00
}