/[webpac2]/Webpacus/root/js/logger.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/js/logger.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 355 by dpavlin, Thu Nov 24 16:30:16 2005 UTC revision 356 by dpavlin, Sat Jan 7 23:43:33 2006 UTC
# Line 13  Use it all you want. Just remember to gi Line 13  Use it all you want. Just remember to gi
13  // Custom Event  // Custom Event
14  // ------------  // ------------
15    
16  CustomEvent = Class.create()  var CustomEvent = Class.create()
17  CustomEvent.prototype = {  CustomEvent.prototype = {
18    initialize : function() {    initialize : function() {
19          this.listeners = []          this.listeners = []
# Line 134  var Cookie = { Line 134  var Cookie = {
134  // Logger  // Logger
135  // -----          // -----        
136    
137  Logger = {  var Logger = {
138          logEntries : [],          logEntries : [],
139    
140          onupdate : new CustomEvent(),          onupdate : new CustomEvent(),
# Line 170  Logger = { Line 170  Logger = {
170          }          }
171  }    }  
172    
173  LogEntry = Class.create()  var LogEntry = Class.create()
174  LogEntry.prototype = {    LogEntry.prototype = {  
175      initialize : function(message, tag) {      initialize : function(message, tag) {
176        this.message = message        this.message = message
# Line 178  LogEntry.prototype = { Line 178  LogEntry.prototype = {
178      }      }
179  }  }
180    
181  LogConsole = Class.create()  var LogConsole = Class.create()
182  LogConsole.prototype = {    LogConsole.prototype = {  
183    
184    // Properties    // Properties
# Line 429  LogConsole.prototype = { Line 429  LogConsole.prototype = {
429  }          }        
430    
431  // Load the Console when the window loads  // Load the Console when the window loads
432    var logConsole = null;
433  Event.observe(window, "load", function() {logConsole = new LogConsole()})  Event.observe(window, "load", function() {logConsole = new LogConsole()})
434    
435  // -------------------------  // -------------------------
# Line 475  Array.prototype.contains = function(obje Line 476  Array.prototype.contains = function(obje
476  }    }  
477    
478  // Helper Alias for simple logging  // Helper Alias for simple logging
 var puts = function() {return Logger.log(arguments[0], arguments[1])}        
479    var puts = function() {return Logger.log(arguments[0], arguments[1])}      

Legend:
Removed from v.355  
changed lines
  Added in v.356

  ViewVC Help
Powered by ViewVC 1.1.26