How to use the log function from tracer

Find comprehensive JavaScript tracer.log code examples handpicked from public code repositorys.

60
61
62
63
64
65
66
67
68
69
recordedWSTraffic: [],
colormap: [{ r: 0, g: 0, b: 0 }],

traceLog: function (f, l) {
  if (typeof l === 'undefined' || me.debug > l) {
    tracer.log(String(f.name) + ' ' + (f.caller ? (f.caller.name || 'annonymous') : 'root'));
  }
},
niiTag: bufferTag('nii', 8),
// const mghTag = bufferTag("mgh", 8);
fork icon44
star icon96
watch icon20

+ 103 other calls in file

7
8
9
10
11
12
13
14
15
16
17
18


var PokemonGO = require('../submodules/poke.io.js');
var Trainer = require('../source/Trainer.js');


function downloadPokemonImage(pokemonData, callback) {
    logger.log('[i] pokemonData: ' + pokemonData);
    var image_url = pokemonData.img;
    var n = pokemonData.img.lastIndexOf('/');
    var filename = pokemonData.img.substring(n + 1);
    filename = './public/images/pokemon_icons/' + filename;
fork icon1
star icon4
watch icon0

+ 29 other calls in file

183
184
185
186
187
188
189
190
191
192
      q += "\'" + obj.inst + "\', \'" + obj.session + "\', \'" + obj.dept + "\', \'" + obj.classNbr + "\', \'" + obj.section + "\', \'" + obj.title + "\', \'" + obj.days_and_times
         + "\'," + obj.Status + ", \'" + obj.topic + "\', \'" + obj.room + "\', \'" + obj.meeting_dates +  "\', \'" + obj.teacher +  "\', \'" + obj.labLec + "\'), ("
  }
  q = q.substring(0, q.lastIndexOf(","))
  sendQuery(q,[],function(result){
    logger.log(result)
  })
})
//updateAllSessions()

fork icon0
star icon1
watch icon2

+ 17 other calls in file

351
352
353
354
355
356
357
358
359
360
  //   "size": { "total":36990838, "transferred":36845878 }
  // }
})

EAU.download(function (error) {
  logger.log('Download progress : %j', error)
  if (error) {
    dialog.showErrorBox('info', error)
    return false
  }
fork icon0
star icon0
watch icon1

68
69
70
71
72
73
74
75
76
77
  }
},

getSingleTeamRoster: async (team, season) => {
  try {
    //   await logger.log(team.toUpperCase());
    const teamToQuery = team.toUpperCase();
    logger.log(teamToQuery);
    logger.log(season);
    //   const teamToRetrieve = team.toUpperCase();
fork icon0
star icon0
watch icon0

+ 7 other calls in file

8
9
10
11
12
13
14
15
16
17
18
19
20


app.listen(5001);


app.get('/api/hockey/levels', async (req, res) => {
  const levels = await sqlQueries.getAllLevels();
  // await logger.log(levels);
  res.json(levels);
});


app.get('/api/hockey/seasons', async (req, res) => {
fork icon0
star icon0
watch icon0

+ 11 other calls in file

3
4
5
6
7
8
9
  format:
    '{{timestamp.green}} <{{title.yellow}}> {{message.cyan}} (in {{file.red}}:{{line}})',
  dateformat: 'HH:MM:ss.L'
})


module.exports = logger.log
fork icon0
star icon0
watch icon0