Skip to content

Logging

preslav-anev edited this page Jun 5, 2017 · 4 revisions

Logging allows developers to track activities happening inside the code. You could enable logging for Kount SDK from the ini file in src/settings.ini file under the [LOGGING] section.

[LOGGING]
# Specify the logger to use. The default loggers supplied with the Kount RIS
# SDK are NOP (a logger that silently discards all logging), and SIMPLE (a
# simple logger that writes messages to a specified file).
# See the README for more advanced logging configuration information.
LOGGER=SIMPLE

# Logging level for SimpleLogger if it is enabled.
# Acceptable logging levels in order of decreasing severity are FATAL, ERROR,
# WARN, INFO, and DEBUG.
SIMPLE_LOG_LEVEL=INFO

# Specify the file name where the SimpleLogger will log messages to.
SIMPLE_LOG_FILE=Kount-SDK-Ris-PHP.log

# SimpleLogger log path. This is the directory where the log file will be
# located. This directory must have read and write permissions enabled for the
# PHP user. This directory must already exist.
SIMPLE_LOG_PATH=

# Logging variable to configure the logging of client-side timing metrics.
# Default value is OFF. Can be set to ON which will enable the logging when creating a RIS Request to Kount.
SIMPLE_LOG_RIS_METRICS=ON

Configurations

  • LOGGER

    • Enables logging
    • Options: 'SIMPLE' or 'NOP'
    • This specifies the logger to use. The default loggers supplied with the Kount RIS SDK are NOP(a logger that silently discards all logging), and SIMPLE(a simple logger that writes messages to a specified file).
  • SIMPLE_LOG_LEVEL

    • Logging levels available for logging.
    • Options: FATAL, ERROR, WARN, INFO, DEBUG.
  • SIMPLE_LOG_FILE

    • Specifies the file name where the Simplelogger will log messages to.
  • SIMPLE_LOG_PATH

    • SimpleLogger log path. This is the directory where the log file will be located.
  • SIMPLE_LOG_RIS_METRICS

    • Enables logging of client-side timing metrics when creating a RIS request.
    • Logging variable to configure the logging of client-side timing metrics. Default value is OFF.
    • Options: ON or OFF

Next Step