Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split context by source, identify source #63

Open
fgm opened this issue Jul 11, 2018 · 1 comment
Open

Split context by source, identify source #63

fgm opened this issue Jul 11, 2018 · 1 comment
Milestone

Comments

@fgm
Copy link
Owner

fgm commented Jul 11, 2018

Introduce a SourceProcessor modifying the context handling logic to format context introduced by client processors within a context.client property, (resp. server, cordova), and introduce a top-level source property identifying the origin of the logged message, so that client-sent messages can end up structured like:

{
  "_id" : "Q2656X7y3BbdEJnHp",
  "level" : 6,
  "message" : "some message",
  "context" : {
    "message_details" : {
      "arg1" : "answer",
      "arg2" : 42,
    },
    "source": "client",
    "client" : {
      "browser" : { /*..snip.. */ },
      "routing" :  { /*..snip.. */ },
      "customprocessor" : "other data"
    },
    "server" : {
      "hostname" : "fgm-linux-figaro",
      "user" : {
        "_id" : "wEbSie2FbizumzHyf",
        "createdAt" : ISODate("2018-06-29T16:03:18.583Z"),
        "services" : {
          "customauth" : { { /*..snip */ } ,
        }
      }
    },
    "timestamp" : {
      "log" : 1531235569008,
      "store" : 1531235569008
    },
  }
}
fgm added a commit that referenced this issue Jul 20, 2018
fgm added a commit that referenced this issue Jul 20, 2018
fgm added a commit that referenced this issue Jul 26, 2018
- coverage increase
- server-added context now under server key.
fgm added a commit that referenced this issue Jul 26, 2018
- coverage increase
- server-added context now under server key.
fgm added a commit that referenced this issue Jul 27, 2018
fgm added a commit that referenced this issue Jul 27, 2018
fgm added a commit that referenced this issue Jul 27, 2018
fgm added a commit that referenced this issue Aug 16, 2018
fgm added a commit that referenced this issue Aug 16, 2018
fgm added a commit that referenced this issue Aug 16, 2018
fgm added a commit that referenced this issue Aug 16, 2018
fgm added a commit that referenced this issue Sep 6, 2018
- Generic refactoring to clean up import/export formats.
fgm added a commit that referenced this issue Sep 6, 2018
- Generic refactoring to clean up import/export formats.
fgm added a commit that referenced this issue Sep 7, 2018
fgm added a commit that referenced this issue Sep 21, 2018
fgm added a commit that referenced this issue Sep 21, 2018
fgm added a commit that referenced this issue Sep 23, 2018
- Generic refactoring to clean up import/export formats.
fgm added a commit that referenced this issue Sep 23, 2018
fgm added a commit that referenced this issue Sep 23, 2018
@fgm fgm added this to the 0.2.x series milestone Sep 27, 2018
@fgm
Copy link
Owner Author

fgm commented Mar 1, 2019

Follow implementation on #67

fgm added a commit that referenced this issue May 24, 2019
fgm added a commit that referenced this issue Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant