insality / defold-log Goto Github PK
View Code? Open in Web Editor NEWContext logger with performance metrics for Defold
License: MIT License
Context logger with performance metrics for Defold
License: MIT License
Allowing custom handlers for log messages. This lets users store or send them as needed.
Syntax:
log.set_callback(function(logger, level, message, context)
-- Handle log messages
end)
Add a path to game.project
to JSON file with content
{
"logger_name": "FATAL",
"game.project": "TRACE",
"gui.*": "WARN", // Probably we can use * to mask several characters?
}
On start if this file loaded, this log levels should be used as LEVEL for this logger.
DEBUG_FORCE_LEVEL should have more priority.
File should be loaded before first logger created
Add ability to user to set the max_log_length
from game.project
and it should be used to trim log messages
Now the hard-coded value in library is 250
Add ability to library user to set the inspect_depth
from game.project
and it should be used as depth in table-to-string function
Add a way to store logger output to file or several files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.