Solution for people who may have a similar problem:
" $('#Logs .log-line').slice(13).remove(); "
By default it says slice(500), adjust this number according to your needs. 13 was enough for me.
image.png
@orinsamy said in How to color logs?:
When i try this it's working
log_html("<span style='color:yellow'>Test log</span>")But When i add variable it's not working
log_html("<span style='color:yellow'>[[LEAD]]</span>")Please solve my problem
https://code.mu/en/javascript/book/prime/basis/strings-concatenation/
I did watched this video but log not work with variable
https://www.youtube.com/watch?v=SNm_hSX4iOg
(Full line not work with color)
hello there. i was looking for the answer to this question for the web interface and saw a few suggestions.
but I found a much simpler and practical way that meets my needs. i am adding it here for those who may need it in the future.
Update the place I marked in the js file like this. Edit the <span></span> text.
I preferred the yellow color. You can use another color instead of yellow.
