Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
MichaelQ Super Contributor.
Super Contributor.
347 views

Log Levels in ServiceAPI

Jump to solution

Hi all, 

I'd first like to congratulate Micro Focus on amalgamating all the forums together so that it is harder to find what we're after and also for not letting me know so my RSS feed died without my knowledge.  Now I've resubscribed I look forward to many posts about things that don't relate to my work.

Enough nark, time for a question.

I can't find in doco or on this site any reference to the log level options for the ServiceAPI.  I am hoping to log each call to the ServiceAPI.  Out of the box it has <level value="ERROR">.  I have tried "INFO" and "INFORMATION" but when I do a quick record retrieval (http://localhost/HPECMServiceAPI/Record?q=uri=300)there is nothing in the log.  Is this because the ServiceAPI does not log what I desire or because I'm guessing the wrong string?

Thanks!

 

0 Likes
1 Solution

Accepted Solutions
JanMartin Outstanding Contributor.
Outstanding Contributor.

Re: Log Levels in ServiceAPI

Jump to solution

It appears to use log4net which has the following levels (noisiest to quietest):

  • ALL
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
  • OFF
3 Replies
MichaelQ Super Contributor.
Super Contributor.

Re: Log Levels in ServiceAPI

Jump to solution

I now note that "Information" provides log entries which declare themselves to be "debug" ones.  It doesn't quite give me what I was after but hopefully in conjunction with the IIS logs I can get what I need.

It might still be useful to know what the valid options are.

0 Likes
JanMartin Outstanding Contributor.
Outstanding Contributor.

Re: Log Levels in ServiceAPI

Jump to solution

It appears to use log4net which has the following levels (noisiest to quietest):

  • ALL
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • FATAL
  • OFF
Micro Focus Expert
Micro Focus Expert

Re: Log Levels in ServiceAPI

Jump to solution

If you also want a log entry for each request you should set trace="true' in the root hptrim element in hptrim.config.


Blog | Samples | HPE CM 9.3 SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.