Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // gbLog.js
- //=============================================================================
- /*:
- * @plugindesc log message
- * @author G Bison
- *
- * @help This plugin does not provide plugin commands.
- *
- *
- * Usage examples of this plugin:
- * - log_add(your_log,type)
- */
- /*:ja
- * @plugindesc メッセージをログに記録
- * @author G Bison
- *
- * @help このプラグインにはプラグインコマンドはありません。
- *
- * 想定される用途:
- * - log_add( メッセージ, タイプ )
- */
- function log_add(message, type){
- var d = new Date();
- if(type==undefined){
- type='infO';
- }
- // console.log(type);
- txt=d.getFullYear()+'-'+d.getMonth()+'-'+d.getDate();
- txt=txt+" "+d.getHours()+":"+d.getMinutes()+":"+d.getSeconds()+" ";
- txt=txt+type.toUpperCase( )+' ';
- txt=txt+message;
- console.log(txt);
- }
- /***
- * simple (done)
- * array input?
- * show as Json
- ***/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement