microsoft / microsoft/TypeScript
Allow tsserver to log to stderr instead of logfile
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Go
- Estrellas
- 111k
- Forks
- 14.4k
- Merge medio
- 1 d 19 h
- PR fusionados (30 d)
- 117
Descripción
Search Terms
tsserver log stderr
Suggestion
It would be great if tsserver could log everything to STDERR instead of/in addition to the logfile.
Use Cases
When running tsserver remotely (not on the same computer, but on a server/in a container) it is currently difficult to forward logs to the client. Currently I am running tail on the logfile, but that takes up a file watcher or CPU for polling and has a delay.
Examples
N/A
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza localizando la implementación de logging de tsserver y cómo escribe actualmente en el logfile. Rastrea la configuración o el punto de entrada que controla el logging y determina después cómo coexistiría la salida a stderr con el logging en archivo o cómo lo reemplazaría. Se considerará terminado cuando los usuarios remotos puedan recibir los logs de tsserver a través de stderr sin romper el comportamiento existente del logfile, con pruebas que cubran el comportamiento seleccionado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- devtools
- 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