management.views.loggingΒΆ
Logging setting specific views.
ClassesΒΆ
Index view. |
|
View to display all log files in the log directory in a table. |
|
Log file detail view, allows to view the content of a single log file without download. |
|
View to download a single log file |
|
View to download multiple log files as a single archive. |
FunctionsΒΆ
|
Handle language Configuration. |
Module ContentsΒΆ
- class management.views.logging.IndexView(**kwargs)[source]ΒΆ
Bases:
django.views.generic.base.RedirectViewIndex view.
- management.views.logging.language(request)[source]ΒΆ
Handle language Configuration.
Returns: HTTPResponse
- Parameters:
request (django.http.HttpRequest)
- Return type:
django.http.HttpResponse
- class management.views.logging.LoggingFilesTableView[source]ΒΆ
Bases:
trustpoint.page_context.PageContextMixin,trustpoint.logger.LoggerMixin,trustpoint.views.base.SortableTableFromListMixin,django.views.generic.list.ListView[django.db.models.Model]View to display all log files in the log directory in a table.
- static _get_first_and_last_entry_date(log_file_path)[source]ΒΆ
- Parameters:
log_file_path (pathlib.Path)
- Return type:
tuple[None | datetime.datetime, None | datetime.datetime]
- class management.views.logging.LoggingFilesDetailsView(**kwargs)[source]ΒΆ
Bases:
trustpoint.page_context.PageContextMixin,trustpoint.logger.LoggerMixin,django.views.generic.TemplateViewLog file detail view, allows to view the content of a single log file without download.
- class management.views.logging.LoggingFilesDownloadView(**kwargs)[source]ΒΆ
Bases:
trustpoint.page_context.PageContextMixin,trustpoint.logger.LoggerMixin,django.views.generic.TemplateViewView to download a single log file
- class management.views.logging.LoggingFilesDownloadMultipleView(**kwargs)[source]ΒΆ
Bases:
trustpoint.page_context.PageContextMixin,trustpoint.logger.LoggerMixin,django.views.generic.ViewView to download multiple log files as a single archive.