A simple logger for all types of variables.
Put this in the head of the HTML document :
<script src="https://cdn.jsdelivr.net/gh/Wixonic/[email protected]/Logger.min.js"></script>
- Type :
String
- Description : The printing mode. Two possible values :
"normal"
or"compressed"
- Default :
"normal"
- Edition : True
- Type :
Number
- Description : The limit for the length of objects
- Default :
150
- Edition : True
- Type :
Array
- Description : All logs
- Default :
[]
- Edition : Not Recommended
- Type :
String
- Description : Indentation
- Default :
""
- Edition : Not Recommanded
- Description : Logs arguments in the console
- Arguments : An infinity of arguments of any type
- Returns :
undefined
- Description : Convert
Logger.logs
to a string - Arguments :
none
- Returns : All logs
string
- Description : Convert anything to a
String
- Arguments : One, the variable to convert.
- Returns : Argument
string
- Don't put an object which contains itself like
window