Sitemap

Log File Configuration

Share KeePass Passwords with your Team of multiple users

How do I change the location of the Pleasant Password Server Log

To change the location of the logging file you'll have to locate your web.config file and make a few changes.

Note: Before making any changes to the web.config file, you must stop the Pleasant Password Server service.

The easiest way is to launch a command prompt with admin permissions and enter:

net stop "pleasant password server"

Version 7

By default, the web.nlog file can be found at:

  • C:\Program Files (x86)\Pleasant Solutions\Pleasant Password Server\www\web.nlog

The following log target "bufferedFile" defines the location of the log file.

<!--Defines the main diagnostic log file for Password Server -->
 <target xsi:type="BufferingWrapper" name="bufferedFile" slidingTimeout="True" bufferSize="300" 
flushTimeout="500"> <!-- The name here is the name that the logging rules below will refer to
in order to determin which file to write to.--> <target name="file" xsi:type="File" layout="${longdate} ${logger} ${message} ${newline} ${exception:format=data}
${newline} ${exception:format=tostring}" fileName="${PleasantApplicationData}/WebLogs.txt" archiveFileName="${PleasantApplicationData}/WebLogs_${shortdate}.{#}.txt" archiveAboveSize="10485760" archiveNumbering="Rolling" maxArchiveFiles="20"
concurrentWrites="true" keepFileOpen="false" encoding="utf-8" /> </target>

Change this code to specify a location path. NLog uses forward slashes in the configuration.

fileName="${PleasantApplicationData}/WebLogs.txt" 
archiveFileName="${PleasantApplicationData}/WebLogs_$
{shortdate}.{#}.txt"

 

For example, this would log everything to the c: emp folder.

fileName="c:/temp/WebLogs.txt"
archiveFileName="c:/temp/WebLogs._${shortdate}.{#}.txt"

 

 After you've made these changes, be sure to restart Password Server.

 

WARNING: Config and nlog file changes will not be retained through upgrades!

If you have significantly modified these files it is recommend you back
them up before upgrading and check the newly installed files for updates
before reapplying your changes.

 

Version 6

By default, the web config file can be found at:

C:\Program Files (x86)\Pleasant Solutions\Pleasant Password Server\www\Web.config

Look for the <nlog> section of the file. It should look something like this: 

<nlog>

...

<targets async="true">

 <target name="rollingFile"
              xsi:type="File"
              layout="${longdate} ${logger} ${message} ${exception:format=tostring}"
              fileName="${PleasantApplicationData}/PleasantPasswordServerLog.txt"
              archiveFileName="${PleasantApplicationData}/PleasantPasswordServerLog.{#}.txt"
              archiveEvery="Day"
              archiveNumbering="Rolling"
              maxArchiveFiles="10"
              archiveAboveSize="26214400"
              concurrentWrites="true"
              keepFileOpen="false"
              encoding="utf-8" />

..
</targets>
..
</nlog>

Change this code to specify a location path. NLog uses forward slashes in the configuration.

fileName="${PleasantApplicationData}/PleasantPasswordServerLog.txt
"archiveFileName="${PleasantApplicationData}/PleasantPasswordServerLog.{#}.txt"

 

For example, this would log everything to the c: emp folder.

fileName="c:/temp/PleasantPasswordServerLog.txt"
archiveFileName="c:/temp/PleasantPasswordServerLog.{#}.txt"

 

KeePass Client Log Configuration

The KeePass Client logging can be configured similarly to change the log file location.

The log configuration file can be found at C:\Program Files (x86)\Pleasant Solutions\KeePass for Pleasant Password Server\NLog.config