Protected
_logThe log level for this log print
Overridable hook to send logs to the native environment
Protected
_onProtected
_registerRest
...args: TSerializable[]variadic arguments of serializable objects to log to the console
enables the native bridge logging if enabled.
If enabled, The native FuseLogger will pass native log messages to the webview and will be logged into the JS console. Logs passed through this logger will also be passed to the native environment and will be logged in the native's logging console.
This can be helpful in debugging where all logs will be in the same place, however, logging can be verbose and can cause a degration of performance, therefore it may not be desirable to have enabled for production builds.
This feature is currently enabled by default, however this is subject to change.
Rest
...args: TSerializable[]variadic arguments of serializable objects to log to the console
Rest
...args: TSerializable[]variadic arguments of serializable objects to log to the console
Rest
...args: TSerializable[]variadic arguments of serializable objects to log to the console
A base logger implementation which includes a serializer for common types. It will serialize/accept all values that TSerializable accepts, however Blob/ArrayBuffer or other binary data types will not be serialized. Instead it will print an object identifier, with mime type if present, along with the size of the buffer.
The base logger does not provide any native bridging. While usable for purely webview side, use the FuseLoggerFactory to get a logger specific for your runtime environment.