@Fox said in How to color logs?:
log_html("<span style='color:yellow'>Test log</span>")
hello can you help me? what if I want to make the text in the center position log_html("<span style='color:yellow'>Test log</span>")
function log(text) {
var now = new Date();
Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() );
}
@tet-vivi said in log setting help me:
function log(text) {
var now = new Date();
Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() );
}
SyntaxError: Parse error during execution of action 2
@xxasaxx said in log setting help me:
@tet-vivi said in log setting help me:
function log(text) {
var now = new Date();
Logger.WriteHtml("<span style='color:#000000'>" thread_number() + " : " + "Bilgi" + text + "</span>", "Bilgi" + thread_number() + " : " + text + " " + now.getHours() + ": " + now.getMinutes() + ": " + now.getSeconds() );
}SyntaxError: Parse error during execution of action 2