1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Go to file
Sami Tiilikainen ac2d0e46ff
Renderer file logging transport (#6795)
* Renderer file logging transport

Add file logging to renderer, writing separate log files for renderer main frame and each cluster frame.

Related to lensapp/support-lens-extension#118

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Switch renderer file log level to info

There is too much noise on debug level from api responses etc

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Unmount on pagehide instead of beforeunload

It seems cluster onbeforeunload is not triggered when iframe is removed from dom by the parent (when disconnecting a cluster).

While on root/main frame the beforeunload event does work, it seems to be adviced to use pagehide instead.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Close log files on unmount

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Improve file handle closing in different situations

This should cover reloading main and cluster frames and closing cluster frame throught disconnecting cluster. No file handles should be left open now.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Fix renderer log rotation

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Switch back to beforeunload in root frame

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

* Remove capturing phase event usage

Does not seem to be needed for log files to be successfully closed and caused integration tests to fail.

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>

---------

Signed-off-by: Sami Tiilikainen <97873007+samitiilikainen@users.noreply.github.com>
2023-02-08 05:50:22 -05:00
.github Export more things for the extension API (#7088) 2023-02-02 08:28:56 -05:00
.idea New resource view: Network -> Ingress Classes (#6808) 2023-01-05 13:26:04 -05:00
.vscode Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
docs Update all links within application (#6442) 2022-10-21 16:34:58 -04:00
jsonnet/lens fix jsonnet error with kube-prometheus >= v0.8 (#5687) 2022-10-19 10:17:07 -04:00
mkdocs Re-enable strict mode in docs vlidation. Bump mkdocs-material version (#3073) 2021-06-16 15:51:36 +01:00
packages Renderer file logging transport (#6795) 2023-02-08 05:50:22 -05:00
troubleshooting fix jsonnet error with kube-prometheus >= v0.8 (#5687) 2022-10-19 10:17:07 -04:00
.adr.json Initialize a cli-tool to maintain Architectural Decision Records and create initial ADR (#5712) 2022-08-10 14:36:26 +03:00
.gitignore Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
.npmrc Add engine to strict node version in package.json (#144) 2020-03-23 16:31:28 +02:00
.yarnrc Fix publishing @k8slens/node-fetch (#7024) 2023-01-26 10:15:23 -05:00
CODE_OF_CONDUCT.md Add contributing/development pages (#1480) 2020-11-23 11:37:30 +02:00
CONTRIBUTING.md Update all links within application (#6442) 2022-10-21 16:34:58 -04:00
lerna.json Release 6.4.0-beta.13 (#7106) 2023-02-03 09:10:04 -05:00
LICENSE Update copyright to 2022 (#5624) 2022-06-14 11:22:38 -04:00
license-header Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
mkdocs.yml Support extending KubernetesCluster in extensions (#4702) 2022-01-19 14:57:42 +02:00
nx.json Fix building docs and verify:docs workflow (#7013) 2023-01-25 13:59:21 -05:00
package.json Release 6.4.0-beta.13 (#7106) 2023-02-03 09:10:04 -05:00
README.md Update slack links to a static redirect url (#6856) 2023-01-03 08:19:04 -05:00
RELEASE_GUIDE.md Add release guide (#6374) 2022-10-07 12:24:11 -04:00
SECURITY.md Add security policy (#2387) 2021-03-25 17:19:45 +02:00
tsconfig.json Move downloading binaries to new package (#7033) 2023-01-27 09:48:33 -05:00
yarn.lock Bump http-cache-semantics from 4.1.0 to 4.1.1 (#7108) 2023-02-03 13:28:33 -05:00

Lens Desktop Core ("OpenLens")

Build Status Chat on Slack

The Repository

This repository is where Team Lens develops the core of the Lens Desktop product together with the community.

The core is a library, powered by Electron and React. Unlike generic Electron + React frameworks / boilerplates, it is very opinionated for creating Lens Desktop-like applications and has support for Lens Extensions.

In the future, this library will be streamlined to become more customizable and pluggable with easy to use tooling for Lens Extension developers.

This source code is available to everyone under the MIT license.

Lens Desktop

Lens Desktop is built on top of the Lens Desktop Core with Team Lens built extensions released under a traditional Terms Of Service.

Lens Desktop is a standalone application for MacOS, Windows and Linux operating systems. Get started by downloading it from Lens website.

Screenshot

Development

See Development page.

Contributing

See Contributing page.

License

See License.