VirtualBox

Changeset 86681 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 22, 2020 11:36:16 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141059
Message:

IPRT/rest: bugref:9167 - Add release logging for REST operations.
Request are logged at level 5, and responses at level 7, so they are
not on by default. The format is a bit ad-hoc, but all the essential
information should be there. It's mostly done in base classes except
for request bodies (it can probably be done in the base class too, but
would require more runtime logic, while here we can only generate them
as needed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/restclient.h

    r85121 r86681  
    348348
    349349    /**
     350     * Getter for the operation name.  Provided by the generated
     351     * subclasses so that base class code may use it for more
     352     * informative logs.
     353     */
     354    virtual const char *getOperationName() const RT_NOEXCEPT = 0;
     355
     356    /**
    350357     * Prepares the HTTP handle for transmitting this request.
    351358     *
     
    473480
    474481    /**
     482     * Getter for the operation name.  Provided by the generated
     483     * subclasses so that base class code may use it for more
     484     * informative logs.
     485     */
     486    virtual const char *getOperationName() const RT_NOEXCEPT = 0;
     487
     488    /**
    475489     * Prepares the HTTP handle for receiving the response.
    476490     *
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette