protected override void OnGroupOpen( IActivityLogGroup g )
{
var w = _buffer.Clear();
string levelLabel = g.MaskedGroupLevel.ToString();
string start = string.Format( "{0}> {1}: ", _prefix, levelLabel );
_prefix += "| ";
_prefixLevel = _prefix;
string prefixLabel = _prefixLevel + new string( ' ', levelLabel.Length + 1 );
w.Append( start ).AppendMultiLine( prefixLabel, g.GroupText, false );
if( _currentTags != g.GroupTags )
{
w.Append( " -[" ).Append( g.GroupTags ).Append( ']' );
_currentTags = g.GroupTags;
}
w.AppendLine();
if( g.Exception != null )
{
DumpException( w, _prefix, !g.IsGroupTextTheExceptionMessage, g.Exception );
}
_writer( _buffer.ToString() );
}