* Introduced the following new elements.
1. logname - you can override the name of the log file rather than using the EXE name, this means you don't have to call your EXE a different name, just name the winsw exe different. Default's the name to the EXE as before.
2. outfiledisabled - you can disable writing to the out file. Defaults to false.
3. errfiledisabled - you can disable writing to the error file. Defaults to false.
4. outfilepattern - you can choose the pattern of the out file. Defaults to .out.log.
5. errfilepattern - you can choos the pattern of the error file. Defaults to .err.log.
* Downgraded from C#7.0 syntax.
* Applied reviewers comment
* not required
* removed the key
* Added unit test for new fields logname, outfiledisabled, errfiledisabled and errfilepattern.
Created a new appender called roll-by-size-time see class RollingSizeTimeLogAppender, this appender supports rolling by time and size and rolling at a specific time each day.
Added unit test for the new appender.
Added a new option testwait which is similar to test but waits for the user to press any key before calling the stop method.
* Update loggingAndErrorReporting.md
* Cannot use $ string.format syntax, downgraded code to string.format.
* Another syntax found of $
* Fixed a unit tests
It restores logging of executables, which has been broken in https://github.com/kohsuke/winsw/pull/220.
Not a regression, because the change has not been released yet
This is rather a workaround to prevent printing of log messages in CLI with the default logging level. I reduced CLI logging verbosity to "Info" and moved the messages polluting the output to Debug. Anyway, these logging levels seem to be reasonable. I also added Info logging for start/stop/install/restart commands just to have a welcome message in CLI.
* #183 - Add core logic for the DelayedStart option support
* #183 - Add unit tests
* #183 - Update documentation and the configuration sample
* #183 - Use API calls to set the DelayedAutoStart flag as @jtnord proposed
* #183 - Refactor the project to use `delayedAutoStart`
* Introduce the Download#FailOnError option.
The change also adds logging of download operations to the wrapper log
* Add documentation for the failOnError flag
* Decouple Core components into WinSWCore projects.
* Use ILMerge to merge everything (inc. Plugins) into a single executable
TODO: API Should be refactored before the publishing
TODO: check signing procedure
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Conflicts:
src/Core/ServiceWrapper/winsw.csproj
Conflicts:
src/Core/ServiceWrapper/Main.cs
src/winsw.sln
The code is compilable, the SharedDirectoryMapper won't be included into WinSW
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Conflicts:
src/Core/ServiceWrapper/Main.cs
Conflicts:
src/Core/ServiceWrapper/ServiceDescriptor.cs
src/Test/winswTests/winswTests.csproj
src/winsw.sln
TODOs:
Migrate EventLogs to log4net
Delegate exceptions handling to log4net
Allows setting up log levels from ServiceDescriptor
(?) Migrate STDERR/STDOUT logs to log4net
(?) Support XML configurations of log4net loggers
Related to #69
Signed-off-by: Oleg Nenashev o.v.nenashev@gmail.com
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
* move WinSW core to a separate folder
* create scr on the top level to store all the stuff inside
Related to #66
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>