zombiebox
Version:
ZombieBox is a JavaScript framework for development of Smart TV and STB applications
29 lines (25 loc) • 634 B
JavaScript
/*
* This file is part of the ZombieBox package.
*
* Copyright © 2012-2019, Interfaced
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import BaseLogger from './base-logger';
/**
* @example console.setLogger(new Alert());
*/
export default class Alert extends BaseLogger {
/**
* @override
*/
_send(level, args) {
const strings = [];
for (let i = 0; i < args.length; i++) {
strings.push(String(args[i]));
}
const logStr = `Level: ${level} ${strings.join(' ')}`;
window.alert(logStr); // eslint-disable-line no-alert
}
}