本文整理汇总了TypeScript中eta-lib.logger.trace方法的典型用法代码示例。如果您正苦于以下问题:TypeScript logger.trace方法的具体用法?TypeScript logger.trace怎么用?TypeScript logger.trace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类eta-lib.logger
的用法示例。
在下文中一共展示了logger.trace方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
eta.db.query(sql, result.params, (err: eta.DBError, rows: any[]) => {
if (err) {
eta.logger.dbError(err);
return;
}
eta.logger.trace("Successfully updated table " + tableName);
});
示例2:
eta.setting.set(req.body.page, req.body.name, req.body.value, req.body.type, (success: boolean) => {
eta.logger.trace("Setting set: " + success);
eta.setting.init();
if (req.body.shouldRedirect) {
res.redirect("../edit/settings?lastPage=" + querystring.escape(req.body.page));
} else {
res.send(success.toString());
}
});
示例3: callback
eta.db.query(sql, [], (err: eta.DBError, rows: any[]) => {
if (err) {
eta.logger.dbError(err);
callback({ errcode: eta.http.InternalError });
return;
}
eta.logger.trace("Fixed Section.");
callback({ "status": "Success" });
});
示例4: processTable
private processTable(db: oracledb.IConnection, file: string, useTerm?: string): void {
let tableHandler: EtaTable, tableName: string;
try {
let handlerModule: any = require(file);
tableName = handlerModule.default.name;
tableHandler = new handlerModule.default(db);
} catch (ex) {
eta.logger.warn("Could not include Oracle table handler: " + ex.toString());
return;
}
let term: string = eta.term.getCurrent().term;
if (useTerm) {
term = useTerm;
}
eta.logger.trace("Fetching " + tableName + "...");
tableHandler.fetch(term, (err: Error, rows: any[]) => {
if (err) {
eta.logger.warn("Couldn't process table " + tableName + ": " + err.message);
return;
}
let sql = "INSERT ";
if (tableHandler.shouldIgnoreDuplicates()) {
sql += "IGNORE ";
}
let result: eta.SqlValueResult = eta.sql.getInsertMany(rows, true);
sql += "INTO `" + tableName + "` " + result.columns + " VALUES " + result.sql;
let duplicateUpdateSql: string = tableHandler.getDuplicateUpdateSql();
if (duplicateUpdateSql != "") {
sql += " ON DUPLICATE KEY UPDATE " + duplicateUpdateSql;
}
eta.db.query(sql, result.params, (err: eta.DBError, rows: any[]) => {
if (err) {
eta.logger.dbError(err);
return;
}
eta.logger.trace("Successfully updated table " + tableName);
});
});
}
示例5:
this.generateWizIQRooms(() => {
eta.logger.trace("Finished attempt to schedule WizIQ rooms.");
});