Best practise to log from Wiki-Page

Description
SteffPoint
Posts: 78
Joined: Wed Mar 07, 2018 1:06 pm
Location: Germany

Best practise to log from Wiki-Page

Postby SteffPoint » Tue Jul 09, 2019 5:46 am

Hello,

can you recommend any methods to log (to the Polarion LogFile or Webbrowser-Console) from a Polarion-Wiki Page (Velocity-Context)?

In JavaScript-Context I am using:

Code: Select all

logger.info("string" + JSVar +"string")


or post-save context:

Code: Select all

polarionLog.info("string" + JSVar +"string")

SteffPoint
Posts: 78
Joined: Wed Mar 07, 2018 1:06 pm
Location: Germany

Re: Best practise to log from Wiki-Page

Postby SteffPoint » Wed Jul 10, 2019 5:01 am

Logging to Console works with following example:

Code: Select all

#set($lsid = "ls_12345")
#set($reqid = "req_12345")

  <script type="text/javascript">
       var lsid= "${lsid}";
       var reqid= "${reqid}";
       console.log(lsid + " was not set suspect by update of " + reqid)
  </script>


However, I still couldn't figure out any way to log directly to the Polarion Log-File (log4j-file).


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: Bing [Bot], francisgk16 and 10 guests