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
My TOM includes custom applications used to analyze data on my Targets, in this case fitting a model to a Target lightcurve.
The app outputs its own logs, normally storing them to disk when run stand alone.
I would like for the TOM to store this logging output so that I can make it available through the UI.
The TOM already uses Python's logging module to capture log streams, which can be viewed in a Cloud deployed-TOM via stern.
Question 1: I need my app to be able to run in stand alone mode and write to local disk as well as output to the TOM's log stream, if available. What is the best-practice way of writing the app to do achieve this?
Question 2: My app spawns parallelized subprocesses as part of its operation (one per Target), each of which write their own logs. I would like to store the output from this log in my TOM for UI display, without the user needing to resort to stern. The controller process produces a separate, additional log, which ideally I would also like to be able to view. How do you recommend we achieve this?
The text was updated successfully, but these errors were encountered:
I'm mostly thinking of text logging, typically a few hundred KB in size.
I'd like to be able to click a button next to the display of the graphical
output from the app to display the logging output on demand.
Set up a django model to keep track of your analysis runs. This could have foreign keys to a target, or whatever fields you need, but importantly also includes a FileField for log output.
Pipe any logs or output for the run into a file that is connected to the run model.
have a run detail page that displays (or downloads) the log file.
This would be good for larger logs that are specific to a single use case. capturing general logs or logs that are only a few lines of text should probably be handled in a different way.
My TOM includes custom applications used to analyze data on my Targets, in this case fitting a model to a Target lightcurve.
The app outputs its own logs, normally storing them to disk when run stand alone.
I would like for the TOM to store this logging output so that I can make it available through the UI.
The TOM already uses Python's logging module to capture log streams, which can be viewed in a Cloud deployed-TOM via stern.
The text was updated successfully, but these errors were encountered: