Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Logging to console or variable with powershell and .net assembly

No, it's not possible.
perry99

Logging to console or variable with powershell and .net assembly

Hello,

using powershell and .net assembly, is it possible to write the SessionLog to console or a variable without writing it to a file first?

I could write the log with something like:
$session.SessionLogPath = ("c:\Sessionlog.log")

and then display it on console. Is there a way to write the output directly to console?