6 types derived from LogMessage
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (6)
59private sealed class StaticLogMessage : LogMessage 87private sealed class LazyLogMessage : LogMessage 117private sealed class LazyLogMessage<TArg0> : LogMessage 150private sealed class LazyLogMessage<TArg0, TArg1> : LogMessage 186private sealed class LazyLogMessage<TArg0, TArg1, TArg2> : LogMessage 225private sealed class LazyLogMessage<TArg0, TArg1, TArg2, TArg3> : LogMessage
37 references to LogMessage
Microsoft.CodeAnalysis.CodeStyle (37)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\ILogger.cs (3)
22void Log(FunctionId functionId, LogMessage logMessage); 27void LogBlockStart(FunctionId functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken); 32void LogBlockEnd(FunctionId functionId, LogMessage logMessage, int uniquePairId, int delta, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (19)
63logger.Log(functionId, LogMessage.Create(message ?? "", logLevel: logLevel)); 75var logMessage = LogMessage.Create(messageGetter, logLevel); 90var logMessage = LogMessage.Create(messageGetter, arg, logLevel); 104var logMessage = LogMessage.Create(messageGetter, arg0, arg1, logLevel); 118var logMessage = LogMessage.Create(messageGetter, arg0, arg1, arg2, logLevel); 132var logMessage = LogMessage.Create(messageGetter, arg0, arg1, arg2, arg3, logLevel); 141public static void Log(FunctionId functionId, LogMessage logMessage) 167? CreateLogBlock(functionId, LogMessage.Create(message ?? "", logLevel), GetNextUniqueBlockId(), token) 176? CreateLogBlock(functionId, LogMessage.Create(messageGetter, logLevel), GetNextUniqueBlockId(), token) 185? CreateLogBlock(functionId, LogMessage.Create(messageGetter, arg, logLevel), GetNextUniqueBlockId(), token) 194? CreateLogBlock(functionId, LogMessage.Create(messageGetter, arg0, arg1, logLevel), GetNextUniqueBlockId(), token) 203? CreateLogBlock(functionId, LogMessage.Create(messageGetter, arg0, arg1, arg2, logLevel), GetNextUniqueBlockId(), token) 212? CreateLogBlock(functionId, LogMessage.Create(messageGetter, arg0, arg1, arg2, arg3, logLevel), GetNextUniqueBlockId(), token) 218public static IDisposable LogBlock(FunctionId functionId, LogMessage logMessage, CancellationToken token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (3)
19private static IDisposable CreateLogBlock(FunctionId functionId, LogMessage message, int blockId, CancellationToken cancellationToken) 37private LogMessage? _logMessage; 44public void Construct(ILogger logger, FunctionId functionId, LogMessage logMessage, int blockId, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (12)
17public static LogMessage Create(string message, LogLevel logLevel) 20public static LogMessage Create(Func<string> messageGetter, LogLevel logLevel) 23public static LogMessage Create<TArg>(Func<TArg, string> messageGetter, TArg arg, LogLevel logLevel) 26public static LogMessage Create<TArg0, TArg1>(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel) 29public static LogMessage Create<TArg0, TArg1, TArg2>(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 32public static LogMessage Create<TArg0, TArg1, TArg2, TArg3>(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel) 63public static LogMessage Construct(string message, LogLevel logLevel) 93public static LogMessage Construct(Func<string> messageGetter, LogLevel logLevel) 124public static LogMessage Construct(Func<TArg0, string> messageGetter, TArg0 arg, LogLevel logLevel) 158internal static LogMessage Construct(Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel) 195public static LogMessage Construct(Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel) 235public static LogMessage Construct(Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel)