Skip to content

Commit

Permalink
Tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
camitz committed Apr 26, 2016
1 parent ea8a19a commit 03f74f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CloudWatchAppender/Parsers/EventMessageParserBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected void ParseTokens(ref List<Match>.Enumerator tokens, string renderedMes
{
v.Unit = unit;
var t = StandardUnit.FindValue(unit.ToLowerInvariant());
if (t.ToString() != unit) //If conversion capitalizes unit then it is valid and should not be included in rest.
if (t.ToString() != unit.ToLowerInvariant()) //If conversion capitalizes unit then it is valid and should not be included in rest.
tokens.MoveNext();
}

Expand Down
2 changes: 1 addition & 1 deletion CloudWatchAppender/Parsers/LogsEventMessageParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected override bool FillName(AppenderValue value)
{
switch (value.Name.ToLowerInvariant())
{
case "rest":
case "__cav_rest":
if (!string.IsNullOrEmpty(_currentDatum.Message))
return false;

Expand Down
6 changes: 3 additions & 3 deletions Examples/ContinuousTicks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using log4net;
using log4net.Config;

namespace Logs
namespace ContinuousTicks
{
internal class ContinuousTicks
{
Expand All @@ -21,8 +21,8 @@ private static void Main(string[] args)
for (int i = 0; i < nTicks; i++)
{
//log.Info("A tick! Value: 2, Unit: Bytes, Unit: Kilobytes");
//log.Info("A tick! Value: 29.4 Kilobytes");
log.Info("A tick! Value: 0 Kilobytes");
log.Info("A tick! Value: 29.4 Kilobytes");
//log.Info("A tick! Value: 0 Kilobytes");
//log.Info(String.Format("A tick! Timestamp: {0}", DateTimeOffset.Now.AddMinutes(-10).ToString()));
//log.Info(null);
//log.Info("A tick! %logger %metadata{instanceid}");
Expand Down

0 comments on commit 03f74f3

Please sign in to comment.