The extension writes all output data to the console and makes it possible to receive them as a string, or send them.
⚠️ For Defold version below 1.3.5 use Share Log 1.0.0 version https://github.com/potatojam/defold-share-log/archive/refs/tags/1.0.0.zip
You can use it in your own project by adding this project as a Defold library dependency. Open your game.project file and in the dependencies field add a link to the ZIP file of a specific release.
⚠️ For some functions, you need to use the share extension. https://github.com/britzl/defold-sharing
[share_log]
block_release_version = true
catch_promise_errors = true
force_html5_init = falseblock_release_version- Disable record for release version.catch_promise_errors- Forhtml5version. Records unhandled promise errors.force_html5_init- Forhtml5version. Starts recording on page load, not extension. The extension is initialized a bit later. Ignoredblock_release_versionparameter.
For use the functions you need to require module:
local sharelog = require("sharelog.sharelog")Return all log as string
Save log to file. Return path as string. For html return empty string.
Parameters
namestring|nil optional Name for file. Defaultsharelogpathstring|nil optional Path to folder. Defaultsys.get_save_file("sharelog", name)
Share log to email where possible.
Parameters
emailstring required Email to send
Share log as text using share extension
Share file as text using share extension
Check if share extention is available Return boolean
Made by PotatoJam.
For example used:
MIT license.