PSEC - Powershell Enhanced Capability
Version 1.2.1

DLogObj Class (src: dlog.psm1)

Description

The DlogObj used to manage a versioned debug file.

Details

This DlogObj is typically stored ion a GLOBAL object so that access from many modules is convenient.

If multiple threads are open, duplicate files are created (with a dup tag to identify them).

The primary debug file is versioned in that 5 previous versions are retained.

Method Index

append appends string to persistant storage. Expensive.

cycle remove oldest file, rename previous files and allow new generation to be created.

flush flushes internal line array to persistant storage. Expensive.

getDlogDupStr This is used to create a unique dlog file based on concurrent PSEC windows. For convenience it tries to use the basic name.

info adds `line` to internal line array.


append Method index (src: dlog.psm1)

Signature

[void] append ( [any]$str)

Parameters

Parameter Format Description

$str any parm description missing

Description

appends string to persistant storage. Expensive.


cycle Method index (src: dlog.psm1)

Signature

[void] cycle ()

Description

remove oldest file, rename previous files and allow new generation to be created.


flush Method index (src: dlog.psm1)

Signature

[void] flush ()

Description

flushes internal line array to persistant storage. Expensive.


getDlogDupStr Method index (src: dlog.psm1)

Signature

[string] getDlogDupStr ()

Description

This is used to create a unique dlog file based on concurrent PSEC windows. For convenience it tries to use the basic name.


info Method index (src: dlog.psm1)

Signature

[void] info ( [string]$line)

Parameters

Parameter Format Description

$line string parm description missing

Description

adds line to internal line array.

PSEC - Powershell Enhanced Capability
1.2.1

Copyright © 2018-2021, 2022, Rexcel System Inc.

 

 

 

 

 

X