Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //create our logger object
- var logger = {
- //do we want the app to log things? if not set this to false
- logit:true,
- info: function(message) {
- if (this.logit) {
- Ti.API.info(message);
- }
- },
- warn: function(message) {
- if (this.logit) {
- Ti.API.warn(message);
- }
- },
- error: function(message) {
- if (this.logit) {
- Ti.API.error(message);
- }
- }
- };
Add Comment
Please, Sign In to add comment