本文整理匯總了C#中System.Logger.WriteLn方法的典型用法代碼示例。如果您正苦於以下問題:C# Logger.WriteLn方法的具體用法?C# Logger.WriteLn怎麽用?C# Logger.WriteLn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Logger
的用法示例。
在下文中一共展示了Logger.WriteLn方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: _doGet
private void _doGet(IDbConnection conn, XmlElement ds) {
var logger = new Logger(this.BioSession.Cfg.WorkspacePath, "debug.log") { Disabled = true };
var cursor = new CJSCursor(conn, ds, this.bioCode);
var rqst = this.BioRequest<JsonStoreRequestGet>();
logger.WriteLn("_doGet - start");
cursor.Init(rqst);
logger.WriteLn("_doGet - cursor.Init - done");
cursor.Open(rqst.Timeout);
logger.WriteLn("_doGet - cursor.Open - done");
try {
var sqlToJson = new CSQLtoJSON();
var packet = sqlToJson.Process(cursor, logger);
var rsp = new JsonStoreResponse {
BioParams = this.bioParams,
Ex = null,
Success = true,
TransactionID = this.TransactionID,
packet = packet,
};
logger.WriteLn("_doGet - sqlToJson.Process - done");
this.Context.Response.Write(rsp.Encode());
logger.WriteLn("_doGet - Response.Write - done");
} finally {
cursor.Close();
}
logger.WriteLn("_doGet - end");
}
示例2: PrintVector
private void PrintVector(Logger.ILogger logger, double[] vector)
{
for (int i = 0; i < vector.Length; ++i)
{
logger.Write(vector[i].ToString() + "; ");
}
logger.WriteLn("");
}
示例3: PrintMatrix
private void PrintMatrix(Logger.ILogger logger, double[][] matrix)
{
for (int i = 0; i < matrix.Length; ++i)
{
for (int j = 0; j < matrix[i].Length; ++j)
{
logger.Write(matrix[i][j].ToString() + "; ");
}
logger.WriteLn("");
}
}