bigbluebutton-Github/bigbluebutton-html5/imports/api/log-client/server/methods/logClient.js
2018-03-21 19:39:11 +00:00

12 lines
327 B
JavaScript

import Logger from '/imports/startup/server/logger';
const logClient = (type, log, ...args) => {
if (typeof log === 'string' || log instanceof String) {
Logger.log(type, `CLIENT LOG: ${log}\n`, ...args);
} else {
Logger.log(type, `CLIENT LOG: ${JSON.stringify(log)}\n`, ...args);
}
};
export default logClient;