Logging to console or variable with powershell and .net assembly

Advertisement

perry99
Guest

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?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,227
Location:
Prague, Czechia

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

No, it's not possible.

Reply with quote

Advertisement

You can post new topics in this forum