protected override void Convert(TextWriter writer, LoggingEvent loggingEvent)
{
string text = this.GetFullyQualifiedName(loggingEvent);
if (this.m_precision <= 0 || text == null || text.Length < 2)
{
writer.Write(text);
}
else
{
int num = text.Length;
string str = string.Empty;
if (text.EndsWith("."))
{
str = ".";
text = text.Substring(0, num - 1);
num--;
}
int num2 = text.LastIndexOf(".");
int num3 = 1;
while (num2 > 0 && num3 < this.m_precision)
{
num2 = text.LastIndexOf('.', num2 - 1);
num3++;
}
if (num2 == -1)
{
writer.Write(text + str);
}
else
{
writer.Write(text.Substring(num2 + 1, num - num2 - 1) + str);
}
}
}