![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
roku-log is a logging framework for Roku Scenegraph apps. It is specifically tailored to the nuances of Roku development. Notably it is:
logItem
functionUse the ropm package manager for roku
ropm install log@npm:roku-log
note: It is recommended that you install with the log
prefix. All instructions here assume this setup.
The logMixin.brs script must be imported into all views that use the logging api:
In your .bs file:
import "pkg:/source/roku_modules/log/LogMixin.brs"
You initialize the log manager, by calling log.initializeLogManager
, with 2 arguments:
e.g.
m.top._rLog = log.initializeLogManager(["log_PrintTransport", "log_ScreenTransport"], 5)
Do this as early as possible in your application, once sceneGraph is running.
In each of your components, classes, etc you wish to log, create a logger. For example:
class AnalyticsManager
function new()
m.log = new log.Logger("AnalyticsManager")
end function
end class
Once you have registered a logger, you can invoke the logging methods.
Once you have created a log instance, you can call the following functions:
m.log.error
m.log.warn
m.log.info
m.log.method
m.log.verbose
m.log.debug
All logging methods have the same signature, allowing for a message, and 9 values:
m.log.xxx(message, value1, value2, value3, value4, value5, value6, value7, value8, value9)
e.g.
m.log.info("Received data", json.result, "http call", m.top.uri)
Note, you do not have to worry about converting values into string; roku-log
will do this for you safely.
To get the most out of the roku-log
, you should use bsc to compile your project, and use the roku-log-bsc-plugin
by:
npm i roku-log-bsc-plugin --save-dev
"plugins": [
"roku-log-bsc-plugin"
],
Add the following to your bsconfig.json
(if you have plugins already, append the plugin value)
"plugins": [
"roku-log-bsc-plugin"
],
"rokuLog": {
"strip": true
}
Add the following to your bsconfig.json
(if you have plugins already, append the plugin value)
"plugins": [
"roku-log-bsc-plugin"
],
"rokuLog": {
"insertPkgPath": true
}
This method is extremely useful, and is fully compatible with the vscode brightscript IDE plugin's brightscript.output.hyperlinkFormat
settings, for both brightscript and brighterscript projects
e.g. put the follwing in your vscode settings:
"brightscript.output.hyperlinkFormat": "FilenameAndFunction",
FAQs
Simple logging library for roku.
We found that roku-log 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.