PowershellFrameworkCollective / psframework

A module that provides tools for other modules and scripts
MIT License
433 stars 41 forks source link

logging Timestamp #441

Closed IMBMicroscopy closed 3 years ago

IMBMicroscopy commented 4 years ago

Hi, would it be possible to add milliseconds to the timestamp in the logging framework?

FriedrichWeinmann commented 3 years ago

Hi, sorry for the late reply. That depends on which logging provider you use, but for the logfile provider, this is supported out of the box:

Set-PSFLoggingProvider -Name logfile -TimeFormat 'yyyy-MM-dd HH:mm:ss.fff'

(plus all the other parameters you would use when enabling it)

IMBMicroscopy commented 3 years ago

Ahhh, thanks

best James

Dr James Springfield Microscopy Facility Manager Institute for Molecular Bioscience Level 6 North | 306 Carmody Road (Building 80) | The University of Queensland | Brisbane Qld 4072 Australia T +61 7 3346 2390 | M +61 423 021 445 | F +61 7 3346 2101 | E microscopes@imb.uq.edu.aumailto:microscopes@imb.uq.edu.au Twitter @IMBmicroscopy

[cid:E1336DB2-0766-4FE0-B720-7E9B5C36318A@imb.uq.edu.au]

Connect: imb.uq.edu.auhttp://imb.uq.edu.au | Subscribe | Facebook | Twitter

This email (including any attached files) is intended solely for the addressee. It may contain private or confidential information. If you are not the intended addressee, you must take no action based on it, nor show a copy to anyone. Kindly notify the sender by reply email. Opinions and information in this email which do not relate to the official business of The University of Queensland shall be understood as neither given nor endorsed by the University. CRICOS Provider Number 00025B.

On 29 Nov 2020, at 1:56 pm, Friedrich Weinmann notifications@github.com<mailto:notifications@github.com> wrote:

Hi, sorry for the late reply. That depends on which logging provider you use, but for the logfile provider, this is supported out of the box:

Set-PSFLoggingProvider -Name logfile -TimeFormat 'yyyy-MM-dd HH:mm:ss.fff'

(plus all the other parametershttps://psframework.org/documentation/documents/psframework/logging/loggingto/logfile.html you would use when enabling it)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/PowershellFrameworkCollective/psframework/issues/441#issuecomment-735339378, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMSUV5R23UJSZ5B3SOZAF6TSSHA6BANCNFSM4TUB6I3A.