Commit Graph

59 Commits

Author SHA1 Message Date
liuzhch1
ae278ddf60 fix(log): custom writer to rotate log file when exceeds max_file_size (fix #707) (#3110) 2025-11-20 10:29:17 +01:00
Michelle Tilley
2a625adff3 feat(log): Allow a log formatter per target (#3065)
Co-authored-by: Fabian-Lars <github@fabianlars.de>
2025-11-04 15:52:46 +01:00
Lucas Fernandes Nogueira
625bb1c096 feat(log): re-export the log crate (#2965)
* feat(log): re-export the log crate

* code review

* Move emit_trace

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
2025-08-30 23:44:03 -03:00
kris-ava
106e46ed51 feat(log): Add KeepSome rotation strategy (#677)
Co-authored-by: Krzysztof Krolak <krzysiek.krolak@gmail.com>
Co-authored-by: FabianLars <github@fabianlars.de>
2025-06-10 19:46:10 +02:00
Tony
2445e103f2 refactor(log): use time macro (#2604) 2025-04-08 20:01:11 +08:00
Tony
4cd625049d docs: fix log targets docs (#2602)
* docs: fix log targets docs

* replace(s)
2025-04-08 20:00:59 +08:00
Jim
60fc35d35c Support emitting traces behind feature flag (#2576)
* Let logging be skippable so user can handle logger()

* Add changes file

* changes meta info

* Update documentation

* Support emitting to tracing behind feature flag

* typo

* rename key_values => kv

* changes file

* Remove rebase skip-logger

* fix format
2025-04-07 10:33:52 +08:00
TATSUNO “Taz” Yasuhiro
9629c2f4f9 [v2][log]: Add generic fern::Dispatch TargetKind to log (#2600)
* [v2][log]: Add generic fern::Dispatch TargetKind to log

Original: b691382d1e

* Add change file

* clippy

---------

Co-authored-by: Tony <legendmastertony@gmail.com>
Co-authored-by: venkr <venkateshrameshkumar+1@gmail.com>
2025-04-07 10:13:17 +08:00
Knobibrot
1bb1ced538 feat(log): enable TargetKind::LogDir on mobile (#2524)
* enable log dir on iOS/Android

* Create change-pr-2524.md

---------

Co-authored-by: Fabian-Lars <github@fabianlars.de>
2025-03-12 22:27:40 +01:00
Jim
024815018f feat(log): Add skip_logger setting (#2377) 2025-03-01 16:20:18 +01:00
Seishiin
6b4c391738 fix(log): timezone_strategy overwriting LogLevels (#2401) 2025-02-08 09:41:34 +08:00
Mads Marquart
784a54a390 [log] Use objc2 (#2344) 2025-01-21 22:57:35 +02:00
Fabian-Lars
51856e9e0a docs: Remove header image from inline docs (#2045) 2024-11-13 16:07:29 +01:00
Tony
371a2f7361 fix(log): inconsistent webview log target (#2021)
* Fix very inconsistent webview log target

* Add change file

* It's log-plugin not log

* Lower rust version requirement

* Use the third line instead of second
2024-11-12 10:10:38 +08:00
Lucas Nogueira
7b053ba6f6 fix(log): update log directory in documentation ref #1637 2024-08-12 15:05:12 -03:00
Miniontoby
e4e19e001b [log] Fix typo in docs of lib.rs (#1637)
* [log] Fix typo in docs of lib.rs

* [lib] Fix typo in docs of lib.rs
2024-08-12 14:59:16 -03:00
Lucas Fernandes Nogueira
20a1d24ee0 feat(log): add Builder::split to get the raw logger implementation (#1579)
* feat(log): add Builder::split to get the raw logger implementation

This function lets you split the Builder to return the raw logger implementation along the TauriPlugin to be registered. Useful to pipe the logger to other implementations such as multi_log or tauri-plugin-devtools, allowing the plugin to be used along other logging systems.

* clippy

* covector
2024-07-23 23:32:21 -03:00
Lucas Fernandes Nogueira
22a17980ff feat: update to tauri beta.24 (#1537)
* feat: update to tauri beta.24

* remove .tauri

* pnpm build
2024-07-12 17:59:17 -03:00
Amr Bashir
fa54f3cc9a fix(log): propagte some errors and avoid unwrapping (#1297) 2024-05-08 17:10:29 +03:00
Lucas Fernandes Nogueira
a04ea2f382 refactor: only inject API IIFE script when withGlobalTauri is true (#1071)
* refactor: only inject API IIFE script when withGlobalTauri is true

* fmt

* update tauri
2024-03-19 15:03:20 -03:00
Lucas Nogueira
dbc0c0757e dist 2024-02-19 17:16:06 -03:00
Lucas Nogueira
9dd1d09797 rebuild 2024-02-19 17:15:24 -03:00
Tillmann
d198c01486 feat: update to tauri beta, add permissions (#862)
Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
2024-02-03 15:14:41 -03:00
Fabian-Lars
387c2f9e0c chore: Update Tauri to alpha.18 (#802) 2023-12-11 15:41:42 -03:00
Amr Bashir
1b98b85a1f refactor: simplify rollup config and match @tauri-apps/api output style (#722)
* refactor: simplify rollup config and match `@tauri-apps/api` output style

* add license headers

* update api-iife.js [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
2023-11-14 21:09:53 +02:00
Lucas Fernandes Nogueira
e438e0a62d feat: update to alpha.17, typed mobile plugin IPC arguments (#676)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-10-29 16:06:44 -03:00
Lucas Fernandes Nogueira
5c137365c6 chore: update to tauri alpha.16, api alpha.9 (#673)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
2023-10-20 13:50:18 -03:00
Lucas Fernandes Nogueira
d74fc0a097 feat: update to alpha.11 (#555) 2023-08-14 14:51:20 -03:00
Simon Hyll
5fd597ddaf docs: added banners and icons (#443)
* added banners and icons

* fix: formatting
2023-06-20 14:55:14 +03:00
Lucas Fernandes Nogueira
32c2a441c3 feat: update to 2.0.0-alpha.10 (#441) 2023-06-17 18:54:35 -03:00
Lucas Nogueira
43be6c7585 Merge remote-tracking branch 'origin/v1' into v2 2023-05-24 10:42:03 -03:00
Lucas Fernandes Nogueira
b131bc8f7c feat(plugins): inject API on window.__TAURI__ (#383) 2023-05-23 14:20:14 -03:00
Lucas Fernandes Nogueira
3c8577bc9a refactor(log): extend target with filter fn and file name, closes #123 (#386) 2023-05-22 15:04:34 -07:00
Lucas Fernandes Nogueira
5914fb9f36 chore: add license headers (#384)
* feat: check for license headers

* add headers

* format
2023-05-21 16:56:10 -03:00
Lucas Nogueira
4470468d7b Merge branch 'dev' into next 2023-05-02 13:47:10 -03:00
Fabian-Lars
d02432df06 fix(log): Replace unknown js location with webview::unknown, fixes #41 (#338) 2023-04-30 17:02:25 +02:00
FabianLars
fad6edab71 Merge remote-tracking branch 'origin/dev' into next 2023-04-26 16:56:03 +02:00
Lucas Fernandes Nogueira
bbdccefa2d chore(deps): update to tauri alpha.8 (#303) 2023-04-14 08:02:48 -03:00
Lucas Fernandes Nogueira
14e4705d55 refactor(log): use NSString instead of SRString on iOS (#302) 2023-04-13 18:27:56 -03:00
Lucas Fernandes Nogueira
539c38a692 feat: update swift-rs (#285)
* feat: update swift-rs

* swift-rs v1

* pin deps
2023-03-16 09:36:31 -03:00
ngapham@kobiton.com
6d7b985b46 [log] Allow to use local timezone instead of UTC when writing logs (#269)
* Allow to use local timezone instead of UTC timezone when writing log

* Address PR feedback

* Fix cargo clippy

* revert `time` version

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-03-06 15:31:28 +01:00
Lucas Fernandes Nogueira
961602bd1b fix(log): use Swift OSLog instead of oslog Rust binding (#262) 2023-02-23 14:17:15 -03:00
Lucas Fernandes Nogueira
22f987bf24 feat: update setup hook to new syntax (#257) 2023-02-16 13:42:26 -03:00
FabianLars
082e05e045 Merge branch 'dev' into next 2023-02-15 15:49:39 +01:00
Fabian-Lars
4bb200aac5 fix: apply clippy suggestions (#120)
* fix: apply clippy suggestions

* fmt

* clippy for linux targets
2023-02-01 11:27:33 +01:00
Lucas Nogueira
1675a4de80 fix unused var [skip ci] 2023-01-17 19:22:18 -03:00
Lucas Nogueira
5f13148aad simplify default formatter for mobile 2023-01-17 18:30:06 -03:00
Lucas Nogueira
9424204a19 fix ios [skip ci] 2023-01-17 16:00:09 -03:00
Lucas Nogueira
bbdabbd64d refactor: keep fern [skip ci] 2023-01-17 15:51:16 -03:00
Lucas Nogueira
fa44de7440 remove warnings 2023-01-17 13:22:48 -03:00