Log Functionality

Log is used to keep track the flow of information/errors etc. in the project. 

//initialize log class 

this.log = VIS.Logging.VLogger.getVLogger("name"); 

Name can be any form name, class name or callout name. 

- -    - 

- -              - 

Way to use log in the project is defined below. 

  

Four levels are defined below: 

this.log.log(VIS.Logging.Level.SEVERE, "cretical error"); 

this.log.log(VIS.Logging.Level.INFO "INFO");

this.log.log(VIS.Logging.Level.WARNING, "WARNING"); 

this.log.log(VIS.Logging.Level.FINE, "OFF"); 

  

Also shorthand for these levels is: 

  

this.log.severe(“msg”); 

this.log.warning(“msg”); 

this.log.fine(“msg); 

this.log.fine(“msg); 

  

In Preference window, Error tab show the log result.