-
Notifications
You must be signed in to change notification settings - Fork 24
Bug --noconsolelogging #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4102808
8e84a45
8c04ec4
79a08ff
e23a96f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ | |
| <variable name="normalLayout" value="${longdate} ${threadid:padding=5} ${uppercase:${level}:padding=5} ${messageLayout}"/> | ||
|
|
||
| <targets async="false"> | ||
| <target xsi:type="ColoredConsole" name="stdout" layout="${messageLayout}" /> | ||
| <target xsi:type="ColoredConsole" name="stderr" errorStream="true" layout="${messageLayout}" /> | ||
| <target name="octopus-log-file" xsi:type="File" | ||
| layout="${normalLayout}" | ||
| fileName="${octopusLogsDirectory}/OctopusTentacle.txt" | ||
|
|
@@ -25,17 +27,13 @@ | |
| maxArchiveFiles="7" | ||
| concurrentWrites="true" | ||
| keepFileOpen="false" /> | ||
|
|
||
| <target xsi:type="ColoredConsole" name="console" layout="${messageLayout}"/> | ||
| <target xsi:type="EventLog" name="eventlog" source="${appName}" layout="${normalLayout}" /> | ||
| </targets> | ||
|
|
||
| <rules> | ||
| <logger name="SkipConsole" minlevel="Info" writeTo="octopus-log-file" /> | ||
| <logger name="SkipConsole" minlevel="Fatal" writeTo="eventlog" final="true" /> | ||
|
|
||
| <logger name="*" minlevel="Info" maxLevel="Warn" writeTo="stdout" /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bit concerned this might be a breaking change... Say someone is just redirecting stdout to a file - all of a sudden it doesn't log errors anymore.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, will update our 3.14 release notes and make it clear in the issue release note. |
||
| <logger name="*" minlevel="Error" writeTo="stderr" /> | ||
| <logger name="*" minlevel="Info" writeTo="octopus-log-file" /> | ||
| <logger name="*" minlevel="Fatal" writeTo="eventlog" /> | ||
| <logger name="*" minlevel="Info" writeTo="console" /> | ||
| </rules> | ||
| </rules> | ||
| </nlog> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happened to these ones?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was an old way this feature was implemented back in the day, but I don't think it worked very well.