log_base.js 546 B

12345678910111213141516171819
  1. "use strict";
  2. ///<reference path="./instance_base.ts"/>
  3. // @ts-ignore
  4. const instance_base = require("./instance_base");
  5. /**打印 */
  6. // @ts-ignore
  7. class log_base extends instance_base {
  8. /* -------------------------------segmentation------------------------------- */
  9. l(...args_as_) {
  10. Editor.log(`${this.name_s}:`, ...args_as_);
  11. }
  12. w(...args_as_) {
  13. Editor.warn(`${this.name_s}:`, ...args_as_);
  14. }
  15. e(...args_as_) {
  16. Editor.error(`${this.name_s}:`, ...args_as_);
  17. }
  18. }
  19. module.exports = log_base;