# LogLine

- Kind: `struct`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/LogLine.cs)
- Implements: `IEquatable<LogLine>`

Represents a console log line.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed readonly struct LogLine
    : System.IEquatable<Aspire.Hosting.ApplicationModel.LogLine>
{
    // ...
}
```

## Constructors

- [LogLine(int, string, bool)](/reference/api/csharp/aspire.hosting/logline/constructors.md#constructor-int-string-bool) -- Represents a console log line.

## Properties

- [Content](/reference/api/csharp/aspire.hosting/logline/properties.md#content) : `string` `get; init` -- The content.
- [IsErrorMessage](/reference/api/csharp/aspire.hosting/logline/properties.md#iserrormessage) : `bool` `get; init` -- A value indicating whether the log line is error output.
- [LineNumber](/reference/api/csharp/aspire.hosting/logline/properties.md#linenumber) : `int` `get; init` -- The line number.

## Methods

- [Deconstruct(int, string, bool)](/reference/api/csharp/aspire.hosting/logline/methods.md#deconstruct-int-string-bool)
- [Equals(object)](/reference/api/csharp/aspire.hosting/logline/methods.md#equals-object) : `bool` -- Indicates whether this instance and a specified object are equal.
- [Equals(LogLine)](/reference/api/csharp/aspire.hosting/logline/methods.md#equals-logline) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/aspire.hosting/logline/methods.md#gethashcode) : `int` -- Returns the hash code for this instance.
- [op_Equality(LogLine, LogLine)](/reference/api/csharp/aspire.hosting/logline/methods.md#op-equality-logline-logline) : `bool` `static`
- [op_Inequality(LogLine, LogLine)](/reference/api/csharp/aspire.hosting/logline/methods.md#op-inequality-logline-logline) : `bool` `static`
- [ToString](/reference/api/csharp/aspire.hosting/logline/methods.md#tostring) : `string` -- Returns the fully qualified type name of this instance.
