Topic "Logging to console or variable with powershell and .net assembly"

Author Message
perry99

Guest


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:
Code:
$session.SessionLogPath = ("c:\Sessionlog.log")

and then display it on console. Is there a way to write the output directly to console?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
No, it's not possible.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License