KM iMFP - How to change the log file directory for the service & application.
  • 18 Apr 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

KM iMFP - How to change the log file directory for the service & application.

  • Dark
    Light
  • PDF

Article summary

Goal

How to change where the Pharos iMFP for Konica Minolta software log files are written to and some of the values used for logging.


Answer

To change the directory that the software writes the log files to, please follow the steps below.

  1. Locate the file called 'KonicaMinoltaService.exe.config' in the directory 'C:\Program Files (x86)\PharosSystems\Pharos iMFP for Konica Minolta'.

  2. Make a copy of the original before editing the file.

  3. Open the file and look for the below line.
    <variable name="logDirectory" value="${specialfolder:folder=CommonApplicationData}/PharosSystems/KM-logs" />

    If you want to log to a different volume then use something like below.
    <variable name="logDirectory" value="D:/KM-logs" />

    If you want to simply change the folder within the ProgramData directory then use something like below.
    <variable name="logDirectory" value="${specialfolder:folder=CommonApplicationData}/PharosSystems/KM-logs" />

  4. Ensure that the folder(s) used above exist.

  5. Repeat steps 3 through 4 for the file called "PharosiMFPManagementConsole.exe.config" located in the same directory.

  6. Restart the Pharos For Konica Minolta service.

Additional changes possible for size of files and number of "Archived" files to keep.

  1. To modify the size of the log files locate the below line and change the value in Bytes.
    archiveAboveSize="1000"

  2. To change how many archive files are kept in the archive folder change the value below.
    maxArchiveFiles="30"
    *Depending on the size you can have the system archive the files every X amount of time using one of the below values in the "archiveEvery" section.

    Day - Archive daily.

    Hour - Archive every hour.

    Minute - Archive every minute.

    Month - Archive every month.

    None - Don't archive based on time.

    Year - Archive every year.
    **More details can be found on the web site for NLog at the below link. https://github.com/nlog/NLog/wiki/File-target 

  3. Ensure that a folder called "archives" exists in "C:\ProgramData\PharosSystems\Pharos iMFP for Konica Minolta\logs". NOTE 1: If you upgrade the KM iMFP Service at some point in time you may need to adjust the logging path after the upgrade.
    NOTE 2: Unfortunately, the OpenAPISDK.log will still be written to the "C:\ProgramData\PharosSystems\Pharos iMFP for Konica Minolta\logs\Service" and there is not a way to change this at this time.


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.