Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Formating log timestamps for locale Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Snoogz
Newbie
Newbie


Joined: 07 March 2016
Location: United States
Online Status: Offline
Posts: 4
Posted: 22 December 2016 at 2:14pm | IP Logged Quote Snoogz

Hello,

Is there any built in way to format the timestamps on the logs to display in the locale format,.e.g., I need to format the timestamps to be in DD/MM/YYYY but they're currently in MM/DD/YYYY.
Back to Top View Snoogz's Profile Search for other posts by Snoogz
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 23 December 2016 at 2:45am | IP Logged Quote Alex

Hi,

You can subscribe to LogNewEntry event (e.g. for Imap object) and write data in your own format (or even into different destination, e.g. utilize log4net, write to db or whatever).

http://www.afterlogic.com/mailbee-net/docs/#MailBee.ImapMail.Imap.LogNewEntry.html

In upcoming v11, there will be special property to control datetime format:

imap.Log.DateTimeFormatFull = @"dd\/MM\/yyyy HH:mm:ss.ff";

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide