logo

NJP

#ServiceNow One Minute M'Orlando - Logpoints

Import · Mar 15, 2020 · video

welcome to another one minute more Lando I'm Robert Frederick it is so good to have you here great news for ServiceNow developers with the release of log points log point solves a massive problem for debugging issues it manifests when someone reports a problem in production now you don't want to add any log statements to code in production because that's a change and if you change you add risk so you depend on testing on sub prod instances but here's a big fat reality check oftentimes our sub prod instances aren't mirror images of prod and unless you're the kind of account that just buys new instances all the time anyway here I am on the business rule incident events now I'm clicking the script debugger on the Advanced tab which opens up another browser window from there I go to session log settings and make sure that logging is enabled now back to the script debugger tab and we're gonna right click on a line that's not blank and add a log point this is where I'm going to add a GS log info warned or error remember GS log will only work in the global scope so if you're out of the global scope you're gonna need to use your info warned or errors only I'm using a GS error with the text WTF longer so now we have a log point defined let's update an incident to make sure that we trigger this business rule Here I am on an incident just going to modify the short description and update back to the session log I've filtered out the message type so I'm just showing errors and there's my log message there you have a folks log to your heart's content in production without changing the objects that you're logging just remember to be a good dev and when you're finished what are you gonna do with all that save time well if for me I go over to ground chart coffee and pick up their delicious blue belt blend and start building like I mean it if you'd like to sponsor this channels content contact me via the email address pictured here if you'd like to contribute to high quality high frequency content consider a donation if not I still appreciate your viewership consider hitting a like button and sharing with your network see the description for relevant links thanks for watching

View original source

https://www.youtube.com/watch?v=GpJou1V5l4E