[Feat]: Custom logging format in code-server
- Lenguaje dominante
- TypeScript
- Estrellas
- 79.3k
- Forks
- 6.8k
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 41
Descripción
## What is your suggestion?
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:
code-server --log-format='%(filename)s: ', '%(levelname)s: ', '%(funcName)s(): ','%(lineno)d:\t', '%(message)s')
## 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?
Guía de contribución
Línea de trabajo
Comienza examinando el manejo existente del nivel de registro mediante la línea de comandos de code-server y la capacidad de formateo de @coder/logger mencionada en el issue. Define cómo se expondría un formato configurable y verifica que los logs resultantes puedan incluir al menos una marca de tiempo y un mensaje en formato JSON.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- observability
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100