Skip to content

Commit 03f74f3

Browse files
committed
Tests pass.
1 parent ea8a19a commit 03f74f3

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CloudWatchAppender/Parsers/EventMessageParserBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ protected void ParseTokens(ref List<Match>.Enumerator tokens, string renderedMes
106106
{
107107
v.Unit = unit;
108108
var t = StandardUnit.FindValue(unit.ToLowerInvariant());
109-
if (t.ToString() != unit) //If conversion capitalizes unit then it is valid and should not be included in rest.
109+
if (t.ToString() != unit.ToLowerInvariant()) //If conversion capitalizes unit then it is valid and should not be included in rest.
110110
tokens.MoveNext();
111111
}
112112

CloudWatchAppender/Parsers/LogsEventMessageParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected override bool FillName(AppenderValue value)
5656
{
5757
switch (value.Name.ToLowerInvariant())
5858
{
59-
case "rest":
59+
case "__cav_rest":
6060
if (!string.IsNullOrEmpty(_currentDatum.Message))
6161
return false;
6262

Examples/ContinuousTicks/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using log4net;
55
using log4net.Config;
66

7-
namespace Logs
7+
namespace ContinuousTicks
88
{
99
internal class ContinuousTicks
1010
{
@@ -21,8 +21,8 @@ private static void Main(string[] args)
2121
for (int i = 0; i < nTicks; i++)
2222
{
2323
//log.Info("A tick! Value: 2, Unit: Bytes, Unit: Kilobytes");
24-
//log.Info("A tick! Value: 29.4 Kilobytes");
25-
log.Info("A tick! Value: 0 Kilobytes");
24+
log.Info("A tick! Value: 29.4 Kilobytes");
25+
//log.Info("A tick! Value: 0 Kilobytes");
2626
//log.Info(String.Format("A tick! Timestamp: {0}", DateTimeOffset.Now.AddMinutes(-10).ToString()));
2727
//log.Info(null);
2828
//log.Info("A tick! %logger %metadata{instanceid}");

0 commit comments

Comments
 (0)