Community Discussions and Support
Mercury Logs

[quote user="J_Aarni"]You can also use special names in Mercury log files to re-create them regularly.[/quote]

Jyrki has a very useful point and is what I do. This way its easy to delete or archive old logs. I usually zip up my logs from the previous month. Having 10's of GB of old log files is not really an issue when pretty much your minimum hard drive is 500GB, although I haven't found a need to look back over stuff.

<p>[quote user="J_Aarni"]You can also use special names in Mercury log files to re-create them regularly.[/quote]</p><p><span style="font-size: 10pt;">Jyrki has a very useful point and is what I do. This way its easy to delete or archive old logs. I usually zip up my logs from the previous month. Having 10's of GB of old log files is not really an issue when pretty much your minimum hard drive is 500GB, although I haven't found a need to look back over stuff.</span> </p>

I have been using Mercury for several years and recently noticed that some of the logs are becoming rather large. The SMTP Client log folder has now reached 7.8GB!  Although much smaller, the MecuryS SMTP server log file is 77MB.  I am presuming that there is little reason to keep all of the history.  Can the SMTP client folder be emptied of files?  If the MercuryS file is deleted, will Mercury recreate it or should I just remove its contents and leave the file in place?

Thank you

Gordon

 

<p>I have been using Mercury for several years and recently noticed that some of the logs are becoming rather large. The SMTP Client log folder has now reached 7.8GB!  Although much smaller, the MecuryS SMTP server log file is 77MB.  I am presuming that there is little reason to keep all of the history.  Can the SMTP client folder be emptied of files?  If the MercuryS file is deleted, will Mercury recreate it or should I just remove its contents and leave the file in place?</p><p>Thank you</p><p>Gordon</p><p> </p>

Hi Gordon,

You could either empty the content within a log file or delete the entire file. Then Mercury is creating a new one on next need automatically.

Normally I need logs only for troubleshooting or when a user would like to know whether one of its important e-mail has really reached the internet. [8-)]

About once per month I clear my log files (remove the oldest entries within the file manually) so that the file size keeps small.

For the next big Mercury release I would wish a log file limiter, which would remove the oldest entries from a log file if the predefined size has reached.

Cheers

Joerg

<p>Hi Gordon,</p><p>You could either empty the content within a log file or delete the entire file. Then Mercury is creating a new one on next need automatically.</p><p>Normally I need logs only for troubleshooting or when a user would like to know whether one of its important e-mail has really reached the internet. [8-)] </p><p>About once per month I clear my log files (remove the oldest entries within the file manually) so that the file size keeps small.</p><p>For the next big Mercury release I would wish a log file limiter, which would remove the oldest entries from a log file if the predefined size has reached.</p><p>Cheers</p><p>Joerg </p>

Hi!

 You can also use special names in Mercury log files to re-create them regularly.  From help file:

Mercury allows you to use certain special characters in the names you give for log files: these special characters are replaced by Mercury each time it needs to open the log file, allowing you to "build" a filename based on the time and date. This is particularly useful for making log files "roll over" periodically. The special characters you can use in log file names are:

  ~Y The year, expressed as 2 digits

  ~M The month (January=1) expressed as 2 digits

  ~D The day of the month (1..31) expressed as 2 digits

  ~W The week of the year starting from 0


Example: to create a logfile for each week of the year, you might enter a path like this:

      C:\MERCURY\LOGS\MERC~Y~W.LOG

 

Regards

Jyrki 

<p>Hi!</p><p> You can also use special names in Mercury log files to re-create them regularly.  From help file:</p><p>Mercury allows you to use certain special characters in the names you give for log files: these special characters are replaced by Mercury each time it needs to open the log file, allowing you to "build" a filename based on the time and date. This is particularly useful for making log files "roll over" periodically. The special characters you can use in log file names are:</p><p> <span class="Apple-tab-span" style="white-space:pre"> </span>~Y<span class="Apple-tab-span" style="white-space:pre"> </span>The year, expressed as 2 digits</p><p> <span class="Apple-tab-span" style="white-space:pre"> </span>~M<span class="Apple-tab-span" style="white-space:pre"> </span>The month (January=1) expressed as 2 digits</p><p> <span class="Apple-tab-span" style="white-space:pre"> </span>~D<span class="Apple-tab-span" style="white-space:pre"> </span>The day of the month (1..31) expressed as 2 digits</p><p> <span class="Apple-tab-span" style="white-space:pre"> </span>~W<span class="Apple-tab-span" style="white-space:pre"> </span>The week of the year starting from 0</p><p> </p><p>Example: to create a logfile for each week of the year, you might enter a path like this:</p><p>      C:\MERCURY\LOGS\MERC~Y~W.LOG</p><p> </p><p><span style="font-size: 10pt;">Regards</span></p><p><span style="font-size: 10pt;">Jyrki </span></p>

Hi Gordon,
we split the core  files by years, other by month or days.

The SMTP Server files should be checked continous and so we create a file daily.
Every year we move the Log files  to a ZIP-Archive.

Best Regards, Torsten 

 

<p>Hi Gordon, we split the core  files by years, other by month or days.</p><p>The SMTP Server files should be checked continous and so we create a file daily. Every year we move the Log files  to a ZIP-Archive.</p><p>Best Regards, Torsten </p><p> </p>
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft