I cant see console.log() messages from rest functions.
http.listen(port, ip, function(){
console.log('Express server started on port %s', http.address().port);});
Within http.listen(), i can see the logs as expected, but when i call other rest functions, like:
app.get('/aaa', function (req, res, next) {
res.send('hello world');
console.log('hello')});
it is not writing any logs, but it does return "hello world".
when i run it locally on my pc i can see the logs, but when i deploy it the problem starts again. i also tried to to write logs with the "fs" api, but it still does not work.
any idea why res.send() does work but console.log() does not?