You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feat]: Custom logging format in code-server #5330
My company needs to log messages in a JSON-Format and at minimum the current timestamp and the log message. We use code-server together with JupyterLab, so the logs look like this (in Python, changing the log-format is easy)
Why do you want this feature?
Getting common logs is required the in the company due to compliance reasons. I would ideally set it like this:
Are there any workarounds to get this functionality today?
Are there? As far as I know I can only get the log level but I have seen code-server uses @coder/logger which has to capability to extend the formatter (https://www.npmjs.com/package/@coder/logger).
Have you ever received a request like this or is there even a workaround to archieve this?
Apologies if this ends up being a duplicate post; I initially responded from email but it seems to have vanished into the void. Here is what I wrote:
There is no way to achieve this currently but it would be pretty trivial to
implement. I think the main question would just be how exactly we want to
implement it.
There is no way to achieve this currently but it would be pretty
trivial to implement. I think the main question would just be how
exactly we want to implement it.
Activity
jsjoeio commentedon Jul 18, 2022
Hmm...I don't think there are workarounds. Is your company using Coder or is this some custom setup?
@code-asher what are your thoughts?
Coding-Crashkurse commentedon Jul 19, 2022
We use the normal code-server inside a container
code-asher commentedon Jul 21, 2022
Apologies if this ends up being a duplicate post; I initially responded from email but it seems to have vanished into the void. Here is what I wrote:
There is no way to achieve this currently but it would be pretty trivial to
implement. I think the main question would just be how exactly we want to
implement it.
code-asher commentedon Oct 11, 2022
code-asher commentedon Oct 13, 2022
Wow my comment showed up almost three months later. ⌛