Comments (10)
Sorry, @santoshyadavdev I missed this notification. Go ahead with this idea POC. :)
from lumberjack.
The partial implementation suggested doesn't quite make sense since scope
isn't known in this example. This is something work discussing. Should log scope be part of this API?
I'm still new to the process, what do you mean by drafting and testing this?
I mean feel free to start writing code, tests, documentation, and design documents and we will help you rework your contribution after the framework-agnostic release of Lumberjack.
Should I wait for the v16 and suggest changes then, based on the rework or write what the API might look like
You can get started on the Angular API for now. We will need to adapt it to the framework-agnostic package, @lumberjackjs/core
, after the framework-agnostic release.
without referencing inject since it is Angular-related?
We will still have Angular-specific packages:
@lumberjackjs/angular
@lumberjackjs/angular-http-driver
from lumberjack.
Do we need to create a new service, or can we expose the functions?
WDYT @LayZeeDK @NachoVazquez
we can do logCritical(params) {
const service = inject(LoggerService).log()
}
from lumberjack.
I don't completely follow. Could you describe the usage API?
from lumberjack.
The API will look like
export function logCritical(message: string, payload: LumberjackLogPayload) {
return inject(LumberjackService).log({
message: message,
payload: payload,
level: LumberjackLevel.Critical,
createdAt: Date.now(),
scope: 'Forest App',
});
}
And we can use it like below.
logCritical('The forest is on fire', { angularVersion: VERSION.full })
from lumberjack.
I think that's interesting. We could definitely iterate over the idea.
Good thoughts
from lumberjack.
Great, should I try to create a POC and open a PR with this idea? Or do we want to go with Services in the first iteration?
from lumberjack.
Hey! Is this issue still open? I'd like to help and looking for a starting point 😄
from lumberjack.
Hi @pBouillon
Yes, this is still open and relevant. We are currently working on a major rework of Lumberjack to make it framework-agnostic (see #166) so we won't accept any features or publish new feature releases before that work is done. But please feel free to draft design documents, implementation, and tests for this feature and we can iterate over it after the breaking changes and package expansion.
from lumberjack.
I'm still new to the process, what do you mean by drafting and testing this? Should I wait for the v16 and suggest changes then, based on the rework or write what the API might look like, if not what @santoshyadavdev already suggested but without referencing inject
since it is Angular-related?
On a side note, this is a huge refacto, good luck! 🙌
from lumberjack.
Related Issues (20)
- fix(ci): lumberjack CI/CD HOT 1
- docs: create Lumberjack documentation website HOT 1
- ci: support version strategy for partial Ivy compilation HOT 1
- Automate Lumberjack releases HOT 5
- feature request/refactor: use the `inject` function for dependencies
- feature request: add `provide*` and `with*` provider factories to improve DX for standalone applications
- Migrate all TypeScript private properties to JavaScript private properties (#) HOT 3
- feat: Create Redux DevTools Lumberjack Driver to visualize log history
- Configuring and adding custom log levels for Lumberjack Loggers and its log-drivers HOT 4
- Batching Log Message Requests to the server from the Lumberjack Http Driver HOT 5
- Docs: Duplicate example for injecting service
- Failed to use lumberjack for angular 16 HOT 7
- Migrate to Nx 16.7 and Angular 16.2
- Deprecate NgModules in favor of the Standalone provider functions API
- Create Lumberjack 16 release notes blog post and publish when Lumberjack 16 is released
- Add support for String Literal Unions in addition to enums for Lumberjack Levels
- Create release notes blog post for Lumberjack 17
- Create DEV publication to cross post release notes blog posts
- feat: support for updating a drivers log configuration at runtime HOT 4
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 lumberjack.