Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Configure log settings – PB Docs 2022 – PowerBuilder Library

Configure log settings – PB Docs 2022

Configure log settings

You can configure the log settings of PowerServer Web APIs in the
following files in PowerServer Web APIs > Logging folder.

  • log4net.xml: This file
    contains the logging settings for PowerServer. The “RollingFile”
    appender specifies the location, size, and backup of the log file,
    the “TraceAppender” appender specifies to generate the trace log,
    the “ConsoleAppender” appender specifies to print the logging
    information in the console and sets the font color of the logging
    information. For detailed syntax, refer to Apache
    Log4Net Manual
    .

    For example, if you set the following file path, the log file
    can be located here
    ServerAPIsinDebug
    et6.0Logginglogspowerserver.log.

  • Logging.json or Logging.Development.json: This file specifies
    the log level (Trace, Debug, Information, Warning, Error, Critical,
    and None), what level of logging information will be printed in the
    API console, and what type of PowerServer information (SQL,
    transaction, and session) will be logged.

    Logging.json will take effect
    in the production environment (for example, when Web APIs is
    published and running in IIS, docker etc.); and the default log
    level is Warning. Logging.Development.json will take effect in
    the development environment (for example, when Web APIs is running
    from the SnapDevelop IDE or the PowerBuilder IDE); and the default
    log level is Warning.

    If you want to view detailed logs (for example, the activities
    of DataWindow operations) in the Web API console, you should set the
    PowerServer log level to “Debug” or “Trace” in Logging.Development.json, for example,

    If you want to get faster responses (but fewer log information
    in the Web API console), you should set the PowerServer log level to
    “Warning”, “Error”, or “Critical”.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x