CK.Core.ActivityMonitorTextWriterClient.OnEnterLevel C# (CSharp) Method

OnEnterLevel() protected method

Writes all the information.
protected OnEnterLevel ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data.
return void
        protected override void OnEnterLevel( ActivityMonitorLogData data )
        {
            var w = _buffer.Clear();
            _prefixLevel = _prefix + new string( ' ', data.MaskedLevel.ToString().Length + 4 );

            w.Append( _prefix )
                .Append( "- " )
                .Append( data.MaskedLevel.ToString() )
                .Append( ": " )
                .AppendMultiLine( _prefixLevel, data.Text, false );

            if( _currentTags != data.Tags )
            {
                w.Append( " -[" ).Append( data.Tags ).Append( ']' );
                _currentTags = data.Tags;
            }
            w.AppendLine();
            if( data.Exception != null )
            {
                DumpException( w, _prefix, !data.IsTextTheExceptionMessage, data.Exception );
            }
            _writer( w.ToString() );
        }