
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
OpenJSLog is a sophisticated Logging utility with Timestamping and Log-Analysis
OpenJSLog is a sophisticated Logging utility with Timestamping and Log-Analysis.
It is based on JSON-Explorer by kadjar: https://github.com/kadjar/json-explorer
Now with Node.JS support & MIT Licensed!
A simple npm install openjslog
within you commandline (or adding a dependency to openjslog
in your package.json
followeg by a simple npm install
) and a var Log = require('openjslog');
in your application suffices to be able to use Log(myAwesomeVariable);
Available methods: (Log
will be the name of your variable!)
Log(log, force, spit, emptyAfterSpit)
Log.Group(groupName, collapsed)
Log.GroupEnd()
Log.toString()
Browser:
Simply include the file somewhere in your html and use one of the following available methods:
Log(log, force, spit, emptyAfterSpit)
Log.group(groupName, collapsed)
Log.groupEnd()
Log.toString()
Log.setDevmode(value)
Log(log, force, spit, emptyAfterSpit)
:
Log: Logs the given input with a timestamp
@param log The Object to log.
@param force Whether or not to force a log to console.
@param spit Output the Logbuffer to the Console
@param emptyAfterSpit Wether or not to empty the Logbuffer after outputting it.
Log.setDevmode(value)
: (Unavailable in Node.JS, legacy available via OJSLsetDevmode(...)
)
Log.setDevmode: Sets the devmode to either true or false
@param value true or false
Log.group(groupName, collapsed)
: (legacy available via OJSLGroup(...)
)
Log.group: Marks the beginning of a group of logs
@param groupName The name of the group
@param collapsed Collapse the Group?
Log.groupEnd()
: (legacy available via OJSLGroupEnd()
)
Log.group: Marks the end of a group of logs
Log.toString()
:
Log.toString: Return the contents of the LogBuffer as JSON
@returns string Contents of the LogBuffer as JSON
FAQs
OpenJSLog is a sophisticated Logging utility with Timestamping and Log-Analysis
We found that openjslog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.