Closed kasperbrandenburg closed 8 years ago
This seems to conflict with postgit powershell module, and for some reason i couldn't get demo6 to work. I tried a new config, and it seems to work just fine.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<log4net>
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender" >
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff[zzz]} %logger [Line: %property{ScriptLineNumber}] %-5level - %message (%property{PSCallStack})%newline" />
</layout>
</appender>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="C:\Users\Kasper\Documents\WindowsPowerShell\Modules\log4ps\examples\myfile.log" />
<appendToFile value="true" />
<maximumFileSize value="100KB" />
<maxSizeRollBackups value="2" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date{yyyy-MM-dd HH:mm:ss.fff[zzz]} %logger [Line: %property{ScriptLineNumber}] %-5level - %message (%property{PSCallStack})%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="ConsoleAppender" />
<appender-ref ref="RollingFileAppender" />
</root>
</log4net>
</configuration>
Hi, First of all, sorry for not replying to this before! The "output some type of array on all subsequent commands" is probably the default Log4net appender, which just log to the STDOUT (console) by default... not really useful but expected behaviour.
With regard to the error, if you meant Posh-git I don't have conflict, if you actually meant postgit I am not aware of this module.
I don't consider this module production-ready (it lacks serious tests, performance and I haven't had time to polish some angles), but by all mean do let me know feedback and I will try bringing it up to better quality (within a few months).
Thanks for trying it out!
This module appears to have issues. I'm testing on Windows 10 /w anniversary update. .Net 4.6.1 is installed.
The logfile is not created, and once the script has run, the powershell promt seem to output some type of array on all subsequent commands.
Output from running this: