Commit Graph

17 Commits (35af3bf78dffe15d5c288acedaf3a619180b62d9)

Author SHA1 Message Date
NextTurn 35af3bf78d Standardize coding styles 2020-07-18 10:31:55 +08:00
NextTurn c454dcf85c Remove <stopparentprocessfirst> 2020-07-16 16:12:05 +08:00
NextTurn 8beb21568e Merge <domain> and <user> to support User Principal Name 2020-06-26 09:42:47 +08:00
NextTurn 3b2a9354c0 Remove dependency on Win32_Service 2020-06-26 09:02:32 +08:00
NextTurn f260d7e5d9 Reorganize interop codes 2020-05-19 00:23:09 +08:00
NextTurn 09cdb0a0ec
Support <startarguments> and <stoparguments> 2020-05-09 11:49:25 +08:00
NextTurn 55b8afe6b0
Fix default working directory on .NET Core 2020-04-15 14:21:26 +08:00
NextTurn 2c22e62aa0
Fix default domain name 2020-03-31 08:40:25 +08:00
NextTurn 189e3d52e2
Fix executable path on .NET Core 2020-01-29 11:09:50 +08:00
NextTurn 315b0ac440
Throw for necessary settings 2020-01-20 12:19:06 +08:00
NextTurn 5be8708701
Annotate WinSWCore for nullable reference types 2020-01-20 12:18:58 +08:00
NextTurn 9808ae88e8
Clean up styles 2020-01-14 14:04:25 +08:00
jeacott1 e2bf78f1df adds a <hidewindow>true</hidewindow> config switch
so that launching bat files on legacy machines
running Interactive Services Detection don't balk.
2019-05-28 13:25:17 +09:30
Dinz 221d30f271 Introduced the following new elements. (#247)
* 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
2017-09-18 18:22:01 +02:00
Oleg Nenashev d192c03638 #183 - Add core logic for the DelayedStart option support (#205)
* #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`
2017-04-18 23:23:52 +02:00
Oleg Nenashev c0d2d0b6e3 Tests: Add ExamplesTests and fix the issues in the code 2016-12-23 22:30:15 +01:00
Oleg Nenashev 14f32cd309 Decouple Default Settings to a separate publicly accessible class.
Required for tests.
2016-12-23 21:18:59 +01:00