PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom / Log­Level­Source / Write

Method Write

Write<T>(in T, in WriteMessageOptions)

Declaration
public void Write<T>(in T message, in WriteMessageOptions options = null)
where T : IMessage
Parameters
Type Name Description
T message
WriteMessageOptions options
Type Parameters
Name Description
T

Write<T>(in T, in WriteMessageOptions, ref CallerInfo)

Declaration
public void Write<T>(in T message, in WriteMessageOptions options, ref CallerInfo callerInfo)
where T : IMessage
Parameters
Type Name Description
T message
WriteMessageOptions options
CallerInfo callerInfo
Type Parameters
Name Description
T

Write<T>(in T, Exception, in WriteMessageOptions)

Declaration
public void Write<T>(in T message, Exception exception, in WriteMessageOptions options = null)
where T : IMessage
Parameters
Type Name Description
T message
Exception exception
WriteMessageOptions options
Type Parameters
Name Description
T

Write<T>(in T, Exception, in WriteMessageOptions, ref CallerInfo)

Declaration
public void Write<T>(in T message, Exception exception, in WriteMessageOptions options, ref CallerInfo callerInfo)
where T : IMessage
Parameters
Type Name Description
T message
Exception exception
WriteMessageOptions options
CallerInfo callerInfo
Type Parameters
Name Description
T