Last active
December 28, 2020 07:56
-
-
Save kamilklkn/324ce1879421c1c2a42a59e941fde369 to your computer and use it in GitHub Desktop.
Global Consol Log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function g_debugging(_value, _value2, _value3, _value4) { | |
if (_value == undefined) _value = ''; | |
if (_value2 == undefined) _value2 = ''; | |
if (_value3 == undefined) _value3 = ''; | |
if (_value4 == undefined) _value4 = ''; | |
if (host == 'dev') { | |
return console.log('Debugging:=>' + _value, _value2, _value3, _value4); | |
} | |
} | |
// Örnek: g_debugging(filterData,productName); | |
// En fazla 4 değişkeni aynı anda yazdırabilirsiniz. Host kısmı ile sadece belirlediğiniz adres altında çalışmasını sağlayabilirsiniz. Bu sayede canlıya çıktığında unutuğunuz log mesajların önüne geçmiş olursunuz. Tabiki unutmamak en iyisi :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment