Print/log function for Advanced permissions
The current log is limited to specific message, which can be helpful in some situation, but I would like to know if the user (me) can specify what to log, not in terms of logging level, but like direct message, please see example below (from the Advanced Permissions):
// Use JavaScript to define custom permissions at runtime.
//Do something with user
Print(user.name) // THIS IS WHAT I WOULD LIKE TO DO, SO IT PRINTS THE NAME IN THE LOG
Log(user.name) // OR THIS IS WHAT I WOULD LIKE TO DO, SO IT PRINTS THE NAME IN THE LOG
if ( isUserInRole(partners[0]) )
{
Do something.
}
Please do not mind the syntax, I just want to know if I in any way can write directly to the log, and not only have predefined info messages.
Du måste logga in om du vill lämna en kommentar.
Kommentarer
0 kommentarer