logger.log not logging anything

917 views
Skip to first unread message

Pieter le Roux

unread,
Jul 17, 2023, 12:15:13 PM7/17/23
to Google Apps Script Community
Hi,

Not sure if I'm doing something wrong. I have logger.log statements like these

logger.log("Value in C1: " + newValue);
logger.log("Row Index in Destination: " + rowIndex);


But the execution log doesn't log any results for these statements.
It just says that the script ran successfully but it's not.

Damir Makhmudov

unread,
Jul 17, 2023, 12:35:42 PM7/17/23
to google-apps-sc...@googlegroups.com
Try console.log()

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/bab6904a-685a-4ef2-8a9b-daa1af7be73bn%40googlegroups.com.
--

Damir Makhmudov

Pieter le Roux

unread,
Jul 17, 2023, 12:57:02 PM7/17/23
to Google Apps Script Community
I tried console.log but no joy

Bennett, Scott

unread,
Jul 17, 2023, 1:03:36 PM7/17/23
to google-apps-sc...@googlegroups.com
Have you tried logging something in the first line of code?  
Could it be that your code is not executing an if type statement and that is where the Logger.log() is?

Pieter le Roux

unread,
Jul 17, 2023, 1:10:58 PM7/17/23
to Google Apps Script Community
great, that worked thanks

Web Dev

unread,
Jul 17, 2023, 1:11:34 PM7/17/23
to google-apps-sc...@googlegroups.com
change the case to `Logger.log('some stuff: ' + something)`

Damir Makhmudov

unread,
Jul 17, 2023, 4:26:59 PM7/17/23
to google-apps-sc...@googlegroups.com
Share full script pls

--

Damir Makhmudov
Reply all
Reply to author
Forward
0 new messages