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 = false
block_release_version
- Disable record for release version.catch_promise_errors
- Forhtml5
version. Records unhandled promise errors.force_html5_init
- Forhtml5
version. Starts recording on page load, not extension. The extension is initialized a bit later. Ignoredblock_release_version
parameter.
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
name
string|nil optional Name for file. Defaultsharelog
path
string|nil optional Path to folder. Defaultsys.get_save_file("sharelog", name)
Share log to email where possible.
Parameters
email
string 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.