// Copyright © 2014 Intel Corporation. All rights reserved.
// Use  of this  source  code is  governed by  an Apache v2
// license that can be found in the LICENSE-APACHE-V2 file.

/**
 * Console output interface.
 * @constructor
 * @protected
 */
function ConsoleIface() {}

/**
 * Log error message.
 * @param {String} message
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.error =
function(message) {

    throw new Error("ConsoleIface.error() not implemented.");
};

/**
 * Log message.
 * @param {String} message
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.log =
function(message) {

    throw new Error("ConsoleIface.log() not implemented.");
};

/**
 * Output string without trailing newline.
 * @param {String} message
 * @param {Boolean|undefined} stderr Optional, whether to write on stderr, default is stdout.
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.put =
function(message, stderr) {

    throw new Error("ConsoleIface.put() not implemented.");
};

module.exports = ConsoleIface;

// Copyright © 2014 Intel Corporation. All rights reserved.
// Use  of this  source  code is  governed by  an Apache v2
// license that can be found in the LICENSE-APACHE-V2 file.

/**
 * Console output interface.
 * @constructor
 * @protected
 */
function ConsoleIface() {}

/**
 * Log error message.
 * @param {String} message
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.error =
function(message) {

    throw new Error("ConsoleIface.error() not implemented.");
};

/**
 * Log message.
 * @param {String} message
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.log =
function(message) {

    throw new Error("ConsoleIface.log() not implemented.");
};

/**
 * Output string without trailing newline.
 * @param {String} message
 * @param {Boolean} [toStderr] Optional, whether to write on stderr, default is stdout.
 * @memberOf ConsoleIface
 */
ConsoleIface.prototype.put =
function(message, toStderr) {

    throw new Error("ConsoleIface.put() not implemented.");
};

module.exports = ConsoleIface;

Use correct syntax for optional parameter in Console.put()
doc: Use correct syntax for optional parameter in Console.put()
