logging messages in server-side scripts

Pranai
Tera Expert

In a privately-scoped application, which methods are used for logging messages in server-side scripts? (Choose
two.)
A.gs.logError()
B.gs.log()
C.gs.debug()
D.gs.info()
E.gs.error(

4 ACCEPTED SOLUTIONS

Nikhil Bajaj9
Tera Sage

Hi @Pranai ,

 

Correct Answer is:-

C.gs.debug()
D.gs.info()

 

If my answer helped you, please mark it- solution accepted.

 

Regards,

Nikhil Bajaj

View solution in original post

Dr Atul - LNG
Tera Patron

Hi @Pranai 

 

C.gs.debug()
E.gs.error()

View solution in original post

Shashank_Jain
Mega Sage

@Pranai ,

 

Correct answer for this would be

C. gs.debug()

D. gs.info()

 

Explanation :

 

A.  gs.logError() – Deprecated method, not supported in scoped apps.
B.  gs.log() – Not supported in scoped apps (only global).
C.  gs.debug() – Supported, logs debug-level messages.
D.  gs.info() – Supported, logs informational messages.
E.  gs.error() – Supported, but specifically for error messages (not general logging).

 

 

 

View solution in original post

glideFather
Tera Patron

Hi @Pranai the question can be interpreted very widely but with a gun pointing at my head I’d go with gs.info() and gs.debug() 🧏‍♂️

View solution in original post

6 REPLIES 6

Nikhil Bajaj9
Tera Sage

Hi @Pranai ,

 

Correct Answer is:-

C.gs.debug()
D.gs.info()

 

If my answer helped you, please mark it- solution accepted.

 

Regards,

Nikhil Bajaj

Dr Atul - LNG
Tera Patron

Hi @Pranai 

 

C.gs.debug()
E.gs.error()

Shashank_Jain
Mega Sage

@Pranai ,

 

Correct answer for this would be

C. gs.debug()

D. gs.info()

 

Explanation :

 

A.  gs.logError() – Deprecated method, not supported in scoped apps.
B.  gs.log() – Not supported in scoped apps (only global).
C.  gs.debug() – Supported, logs debug-level messages.
D.  gs.info() – Supported, logs informational messages.
E.  gs.error() – Supported, but specifically for error messages (not general logging).

 

 

 

glideFather
Tera Patron

Hi @Pranai the question can be interpreted very widely but with a gun pointing at my head I’d go with gs.info() and gs.debug() 🧏‍♂️