Comments (9)
This is meant to be a configuration file specific to the app utilizing the library (i.e. bright_web_socket.json should be in the main application's package root). This allows the logging level to be configured without modification to the library itself.
from brightwebsocket.
I understand, but if I want to write ComponentLibrary I cannot use readAsciiFile("pkg:/bright_web_socket.json")
because pkg:/
is not a path of my ComponentLibrary, sadly it means I cannot use any I/O ops in brightScript of my ComponentLibrary.
I would like write libs which could be used in any application and will independent.
from brightwebsocket.
At least it could be working with both cases, if config given as field don't lookup for file ...
from brightwebsocket.
@lkrocek you should be able to s/pkg/libpkg/ and have it working, i believe.
from brightwebsocket.
this will not help even libpkg will be working, because the address is apart of this library and I have to still modify the address in this lib. I would like have an original library without modification inside.
from brightwebsocket.
I am unclear on the request. Are you asking for an exposed method of changing the settings handled by bright_web_socket.json (which only controls logging) at runtime?
from brightwebsocket.
Simply my request is about to possibility to change pkg:/bright_web_socket.json
address or in best case to pass its data with same way as a programmer passing url of server, so via interface.
I can try to explain one more:
I believe to do not modify 3rd party libs as this one to keep it simple maintainable for updates etc.
So with this idea I cannot do any changes within lib including address as "pkg:/bright_web_socket.json"
, so this address must be unchanged, but in component lib it follows into package and not into lib package. So whoever will use my lib will require to own this file in his/her own app(s), but it's not required because this should be for my library usage and not final applications.
If you are not sure what I mean maybe it's simplest way to do your own Unsigned Component Library with usage of you awesome WebSocketClient component.
from brightwebsocket.
A new commit to the develop branch exposes the log_level
field in WebSocketClient.xml. It can be set to one of the log level strings.
from brightwebsocket.
perfect it works.
from brightwebsocket.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brightwebsocket.