'Cause sometimes we wanna be fancy...
"--- Loading log4net ---"
[System.Reflection.Assembly]::LoadFrom("$pslib\log4net.dll") | out-null;
"Loaded log4net.dll"
[System.IO.FileInfo]$fi = new-object System.IO.FileInfo "$pslib\log4net.xml"
[log4net.Config.XmlConfigurator]::Configure( $fi )
"log4net configured with $pslib\log4net.xml"
$log = [log4net.LogManager]::getLogger("default")
"`$log = (new logger `"default`")"
""
Monday, July 20, 2009
Powershell, and log4net
EZ money:
Labels:
admin,
powershell
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment