131 references to MessageSensitivity
Microsoft.ML.AutoML (3)
AutoMLExperiment\IMLContextManager.cs (1)
46_channel.Send(new ChannelMessage(e.Kind, MessageSensitivity.Unknown, e.Message));
Utils\Logger.cs (2)
22_channel.Trace(MessageSensitivity.None, message); 27_channel.Error(MessageSensitivity.None, message);
Microsoft.ML.Core (78)
ComponentModel\ComponentCatalog.cs (1)
982throw Contracts.Except("Unknown loadable class: {0}", name).MarkSensitive(MessageSensitivity.None);
Data\IHostEnvironment.cs (35)
213public readonly MessageSensitivity Sensitivity; 223internal ChannelMessage(ChannelMessageKind kind, MessageSensitivity sensitivity, string message) 233internal ChannelMessage(ChannelMessageKind kind, MessageSensitivity sensitivity, string fmt, params object[] args) 249void Trace(MessageSensitivity sensitivity, string fmt); 250void Trace(MessageSensitivity sensitivity, string fmt, params object[] args); 251void Error(MessageSensitivity sensitivity, string fmt); 252void Error(MessageSensitivity sensitivity, string fmt, params object[] args); 253void Warning(MessageSensitivity sensitivity, string fmt); 254void Warning(MessageSensitivity sensitivity, string fmt, params object[] args); 255void Info(MessageSensitivity sensitivity, string fmt); 256void Info(MessageSensitivity sensitivity, string fmt, params object[] args); 279/// Convenience variant of <see cref="IChannel.Trace(MessageSensitivity, string)"/> 280/// setting <see cref="MessageSensitivity.Unknown"/>. 283=> ch.Trace(MessageSensitivity.Unknown, fmt); 286/// Convenience variant of <see cref="IChannel.Trace(MessageSensitivity, string, object[])"/> 287/// setting <see cref="MessageSensitivity.Unknown"/>. 290=> ch.Trace(MessageSensitivity.Unknown, fmt, args); 293/// Convenience variant of <see cref="IChannel.Error(MessageSensitivity, string)"/> 294/// setting <see cref="MessageSensitivity.Unknown"/>. 297=> ch.Error(MessageSensitivity.Unknown, fmt); 300/// Convenience variant of <see cref="IChannel.Error(MessageSensitivity, string, object[])"/> 301/// setting <see cref="MessageSensitivity.Unknown"/>. 304=> ch.Error(MessageSensitivity.Unknown, fmt, args); 307/// Convenience variant of <see cref="IChannel.Warning(MessageSensitivity, string)"/> 308/// setting <see cref="MessageSensitivity.Unknown"/>. 311=> ch.Warning(MessageSensitivity.Unknown, fmt); 314/// Convenience variant of <see cref="IChannel.Warning(MessageSensitivity, string, object[])"/> 315/// setting <see cref="MessageSensitivity.Unknown"/>. 318=> ch.Warning(MessageSensitivity.Unknown, fmt, args); 321/// Convenience variant of <see cref="IChannel.Info(MessageSensitivity, string)"/> 322/// setting <see cref="MessageSensitivity.Unknown"/>. 325=> ch.Info(MessageSensitivity.Unknown, fmt); 328/// Convenience variant of <see cref="IChannel.Info(MessageSensitivity, string, object[])"/> 329/// setting <see cref="MessageSensitivity.Unknown"/>. 332=> ch.Info(MessageSensitivity.Unknown, fmt, args);
Environment\ConsoleEnvironment.cs (12)
109private string LinePrefix(MessageSensitivity sensitivity) 111if (_parent._sensitivityFlags == MessageSensitivity.All || ((_parent._sensitivityFlags & sensitivity) != MessageSensitivity.None)) 116private string WriteAndReturnLinePrefix(MessageSensitivity sensitivity, TextWriter writer) 148WriteAndReturnLinePrefix(MessageSensitivity.None, _out); 162WriteAndReturnLinePrefix(MessageSensitivity.None, _out); 166WriteAndReturnLinePrefix(MessageSensitivity.None, _out); 202WriteAndReturnLinePrefix(MessageSensitivity.None, _out); 235WriteAndReturnLinePrefix(MessageSensitivity.None, _out); 352private readonly MessageSensitivity _sensitivityFlags; 367MessageSensitivity sensitivity = MessageSensitivity.All,
Environment\HostEnvironmentBase.cs (8)
224public void Trace(MessageSensitivity sensitivity, string msg) 229public void Trace(MessageSensitivity sensitivity, string fmt, params object[] args) 234public void Error(MessageSensitivity sensitivity, string msg) 239public void Error(MessageSensitivity sensitivity, string fmt, params object[] args) 244public void Warning(MessageSensitivity sensitivity, string msg) 249public void Warning(MessageSensitivity sensitivity, string fmt, params object[] args) 254public void Info(MessageSensitivity sensitivity, string msg) 259public void Info(MessageSensitivity sensitivity, string fmt, params object[] args)
Utilities\Contracts.cs (22)
124public static TException MarkSensitive<TException>(this TException ex, MessageSensitivity sensitivity) 128MessageSensitivity innerSensitivity; 130innerSensitivity = MessageSensitivity.None; 132innerSensitivity = (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.None; 145/// a <see cref="MessageSensitivity"/> value. If neither of these conditions 146/// hold then <see cref="MessageSensitivity.Unknown"/> is returned.</returns> 147public static MessageSensitivity Sensitivity(this Exception ex) 151return MessageSensitivity.Unknown; 152return (ex.Data[SensitivityKey] as MessageSensitivity?) ?? MessageSensitivity.Unknown; 178public readonly MessageSensitivity ToMark; 182public SensitiveExceptionContext(IExceptionContext inner, MessageSensitivity toMark) 198/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.None"/>. 206/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.None"/>. 209=> new SensitiveExceptionContext(ctx, MessageSensitivity.None); 212/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.UserData"/>. 217/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.UserData"/>. 220=> new SensitiveExceptionContext(ctx, MessageSensitivity.UserData); 223/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.Schema"/>. 228/// A convenience context for marking exceptions from checks and excepts with <see cref="MessageSensitivity.Schema"/>. 231=> new SensitiveExceptionContext(ctx, MessageSensitivity.Schema);
Microsoft.ML.Core.Tests (13)
UnitTests\TestContracts.cs (13)
19private void Helper(IExceptionContext ectx, MessageSensitivity expected) 53Helper(null, MessageSensitivity.Unknown); 56Helper(Contracts.NotSensitive(), MessageSensitivity.None); 57Helper(Contracts.UserSensitive(), MessageSensitivity.UserData); 58Helper(Contracts.SchemaSensitive(), MessageSensitivity.Schema); 59Helper(Contracts.UserSensitive().SchemaSensitive(), MessageSensitivity.UserData | MessageSensitivity.Schema); 62Helper(env, MessageSensitivity.Unknown); 63Helper(env.NotSensitive(), MessageSensitivity.None); 64Helper(env.UserSensitive(), MessageSensitivity.UserData); 65Helper(env.SchemaSensitive(), MessageSensitivity.Schema); 66Helper(env.UserSensitive().SchemaSensitive(), MessageSensitivity.UserData | MessageSensitivity.Schema);
Microsoft.ML.Data (23)
Commands\SaveDataCommand.cs (4)
154ch.Info(MessageSensitivity.Schema, "The column '{0}' will not be written as it has unsavable column type.", data.Schema[i].Name); 178ch.Info(MessageSensitivity.UserData | MessageSensitivity.Schema, result); 216ch.Info(MessageSensitivity.Schema, "The column '{0}' will not be written as it has unsavable column type.", view.Schema[i].Name);
DataLoadSave\Binary\BinaryLoader.cs (1)
2197ch.Info(MessageSensitivity.Schema, "Column {0} '{1}'{2} of {3} in {4} blocks of {5}", col.ColumnIndex, col.Name,
DataLoadSave\Text\TextLoaderParser.cs (2)
188_ch.Info(MessageSensitivity.Schema, " Bad value at line {0} in column {1} at slot {2}", line, colName, slot); 199_ch.Info(MessageSensitivity.Schema, " Bad value at line {0} in column {1}", line, colName);
DataLoadSave\Text\TextSaver.cs (5)
371ch.Info(MessageSensitivity.UserData | MessageSensitivity.Schema, writer.ToString()); 382ch.Warning(MessageSensitivity.None, "Wrote zero rows of data!"); 384ch.Info(MessageSensitivity.None, "Wrote {0} rows of length {1}", count, min); 386ch.Info(MessageSensitivity.None, "Wrote {0} rows of lengths between {1} and {2}", count, min, max);
Evaluators\AnomalyDetectionEvaluator.cs (1)
709ch.Info(MessageSensitivity.UserData, sb.ToString());
Evaluators\BinaryClassifierEvaluator.cs (5)
1401ch.Info(MessageSensitivity.None, weightedConf); 1402ch.Info(MessageSensitivity.None, weightedFold); 1404ch.Info(MessageSensitivity.None, unweightedConf); 1405ch.Info(MessageSensitivity.None, unweightedFold); 1423ch.Trace(MessageSensitivity.None, "Saving p/r data view");
Model\Pfa\SavePfaCommand.cs (1)
203ch.Info(MessageSensitivity.Schema, pfaDoc.ToString(_formatting));
Transforms\ColumnConcatenatingTransformer.cs (1)
720.MarkSensitive(MessageSensitivity.Schema);
Utilities\LocalEnvironment.cs (3)
25Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace, MessageSensitivity.None, "Channel started")); 29=> Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace, MessageSensitivity.None, "Channel finished. Elapsed {0:c}.", Watch.Elapsed)); 38Dispatch(this, new ChannelMessage(ChannelMessageKind.Trace, MessageSensitivity.None, "Channel disposed"));
Microsoft.ML.Maml (8)
MAML.cs (8)
85MessageSensitivity sensitivity = MessageSensitivity.All; 178ch.Error(MessageSensitivity.None, "***** Unexpected failure. Please refer to https://aka.ms/MLNetIssue to file an issue with details *****"); 181ch.Error(MessageSensitivity.None, "***** Error log has been saved to '{0}', please refer to https://aka.ms/MLNetIssue to file an issue with details *****", 187ch.Error(MessageSensitivity.None, "Error log has been saved to '{0}'. Please refer to https://aka.ms/MLNetIssue if you need assistance.", 193ch.Error(MessageSensitivity.None, "===== Begin detailed dump ====="); 195ch.Error(MessageSensitivity.None, "====== End detailed dump ====="); 269ch.Error(MessageSensitivity.None, e.StackTrace);
Microsoft.ML.Mkl.Components (2)
VectorWhitening.cs (2)
318ch.Info(MessageSensitivity.Schema, "Only {0:N0} rows of column '{1}' will be used for whitening transform.", ex.MaximumNumberOfRows, columns[i].Name); 327ch.Info(MessageSensitivity.Schema, "Only {0:N0} rows of column '{1}' will be used for whitening transform.", actualRowCounts[i], columns[i].Name);
Microsoft.ML.Parquet (1)
PartitionedFileLoader.cs (1)
492Ch.Warning(MessageSensitivity.Schema, e.Message);
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
254throw Contracts.Except("Unknown loadable class: {0}", Kind).MarkSensitive(MessageSensitivity.None);
Microsoft.ML.Transforms (2)
CountFeatureSelection.cs (1)
207ch.Info(MessageSensitivity.Schema, "Selected {0} slots out of {1} in column '{2}'", selectedCount[i], colSizes[i], _columns[i].InputColumnName);
LearnerFeatureSelection.cs (1)
109ch.Info(MessageSensitivity.Schema, "Selected {0} slots out of {1} in column '{2}'", selectedCount, scores.Length, options.FeatureColumn);