Questions tagged [ndc]
23 questions
63
votes
4 answers
When to use 'nested diagnostic context' (NDC)?
Playing with log4net, I have seen the possibility to use a per-thread stack of context labels called the NDC.
The labels pushed on this stack are displayed in a PatternLayout by specifying the %x or the %ndc format parameter.
The usage is something…

Cristian Diaconescu
- 34,633
- 32
- 143
- 233
8
votes
1 answer
Webmin error on applying configuration after changing BIND DNS Server
I've just installed Webmin and created a zone that appears to be correct, since Check BIND returns
No errors were found in the BIND configuration file /etc/named.conf or referenced zone files.
The problem was that after hours, my domains still do…

Kamyar Gilak
- 1,044
- 2
- 17
- 23
6
votes
2 answers
How to set DNS when the device is connected via Ethernet?
My android target is connect via Ethernet using static IP.
I am able to connect it by using ADB, but I am not able to ping any server.
Please tell me how can I configure my DNS setting so that I can ping any server.

shahooo
- 563
- 4
- 14
6
votes
2 answers
How to log request & transaction id in each log line using winston for Node JS?
I have built a Node JS REST service using Express. Every request which lands on this service has headers like 'X-org-ReqId' & 'X-org-Tid' which I need to log in all the log lines which are written during execution of this request. Basically I need…

ThinkFloyd
- 4,981
- 6
- 36
- 56
4
votes
2 answers
Does Log4j SyslogAppender support MDC and NDC
Simple really, does Log4j SyslogAppender support MDC and NDC in the sense that the output is structured data i.e. uses the structured data features of the protocol?
Further, are there any limits on what can be put in the MDC and successfully…

Simon Gibbs
- 4,737
- 6
- 50
- 80
3
votes
2 answers
log4j, nested diagnostic contexts
I have a MySession object (a generic Session, not web) that runs in its thread. I want to use NDC class in order to include some data taken from fields of my MySession: user that has created it, starting time etc. etc. I'd like to "render" fields…

AgostinoX
- 7,477
- 20
- 77
- 137
2
votes
1 answer
OpenGL 4.4 pipeline - perspective division before clipping?
I would like to consult with somebody about opengl 4.4 graphics processing pipeline diagram found in opengl insights, specifically about perspective division and primitive clipping order.
The diagram in opengl 4.4 for example, shows that perspective…

MarsaPalas
- 375
- 1
- 6
- 19
2
votes
0 answers
slf4j-ext NDC PatternLayout
NDC (Nested Diagnostic Context) in:
org.slf4j
slf4j-ext
is implemented using the org.slf4j.MDC.
While…

Marcin
- 21
- 4
2
votes
1 answer
Transform to NDC, calculate and transform back to worldspace
I have a problem moving world coordinates to ndc coordinates than calculate something with it and move it back inside the shader.
The Code looks like that:
vec3 testFunc(vec3 pos, vec3 dir){
//pos and dir are in worldspace, convert to NDC
…

Jodo
- 4,515
- 6
- 38
- 50
2
votes
1 answer
Log4j Nested Diagnostic Context NDC
When a user sends a request to my web application, a user session id is added to the NDC stack to be used in the log4j log files, but for some reason, when I call another method, the session id doesn't seem to be in the log calls within that method.…

sbnarra
- 556
- 4
- 9
- 25
1
vote
1 answer
Python RegEx for all National Drug Codes (NDC 10 & 11) formats
Goal: RegEx to fit many posible NDC 10 & 11 formats.
I've made a great start...
NDC 10:
^[0-9][0-9][0-9][0-9]\-[0-9][0-9][0-9][0-9]\-[0-9][0-9]$
e.g. 1234-1234-12
Reference
However, I've since learnt there are other formats and 11…

DanielBell99
- 896
- 5
- 25
- 57
1
vote
0 answers
ndc (nested diagnostic context) in LARAVEL - is it possible?
In log4net you can add NDC to filter all the logs in a specific context. for example per session,request,cli command ext.
its a basically another field in the log that has random string, and the string is share between the contexts from abobe.
When…

SexyMF
- 10,657
- 33
- 102
- 206
1
vote
0 answers
Most accurate way to calculate view frustum corners in world space
I'm trying to calculate the view frustum corners in world space. I've implemented it by using the FOV and using the width/height of the planes and some vector math
However, a lot of examples simply state that you can multiply a NDC corner like…

Johan
- 121
- 1
- 11
1
vote
2 answers
How to read a tag from PN532 in Python?
I want to experiment with the PN532 that comes connected with an arduino UNO. I have never touched anything similar, and in fact it took me quite a few tries to be able to play with LEDs on another arduino board I have.
Can someone provide me with a…

dearn44
- 3,198
- 4
- 30
- 63
1
vote
0 answers
Spring AOP - inheriting NDC from parent thread - java
I am using Spring AOP and trying to intercept the different methods that are being called for a particular user operation. I am using NDC(nested diagnostic context) for this purpose. It is a multi-threaded environment, so I need to pass the NDC…

Nitin Kumar Mangalam
- 31
- 5