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 {
|
2017-03-11 11:30:18 +00:00
|
|
|
(logType: string, logMessage: string): void
|
2016-07-23 23:17:38 +00:00
|
|
|
}
|
|
|
|
|
2017-01-21 22:12:39 +00:00
|
|
|
export interface IBeautyRemote {
|
2017-03-11 11:30:18 +00:00
|
|
|
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) => {
|
2017-03-11 11:30:18 +00:00
|
|
|
for (let beautyremote of remoteArray) {
|
|
|
|
beautyremote.log(logType, logMessage)
|
|
|
|
}
|
2017-01-21 00:05:28 +00:00
|
|
|
}
|