# Enable or Disable Error Logging

You can enable or disable error logging using either the API or environment variables. By default, a file called `kvoop.log` is created in the system temporary directory; however, you can change the path and file name of this file (see Change the Path and File Name of the Log File).

## Use the API

To enable or disable logging in the API, instantiate the Filter object using the constructor `Filter(String outputCharSet, UInt32 filterFlags)`, and set the `FilterConstant.FilterFlagConstant` argument to either `FILTERFLAG_OOPLOGON` or `FILTERFLAG_OOPLOGOFF`. For example:

    objFilter = new Filter(outputCharSet, FilterConstant.FilterFlagConstant.FILTERFLAG_OOPLOGON);

## Use Environment Variables

To enable logging, add the environment variable `KVOOPLOGON`, and set the variable value to 1. To disable logging, do not set the environment variable `KVOOPLOGON`.

© Copyright 2016-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm