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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
51
51
52
52
## [Unreleased] - ????-??-??
53
53
54
-
**Summary**: Type system overhaul with comprehensive type hints for better IDE support and code clarity.
54
+
**Summary**: Type system overhaul and migration to loguru for logging
55
55
56
56
If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOpt/flixOpt/releases/tag/v3.0.0) and [Migration Guide](https://flixopt.github.io/flixopt/latest/user-guide/migration-guide-v3/).
57
57
@@ -64,8 +64,13 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
64
64
- Added `Scalar` type for scalar-only numeric values
65
65
- Added `NumericOrBool` utility type for internal use
66
66
- Type system supports scalars, numpy arrays, pandas Series/DataFrames, and xarray DataArrays
67
+
- Lazy logging evaluation - expensive log operations only execute when log level is active
68
+
- `CONFIG.Logging.verbose_tracebacks` option for detailed debugging with variable values
67
69
68
70
### 💥 Breaking Changes
71
+
- **Logging framework**: Migrated to [loguru](https://loguru.readthedocs.io/)
- For advanced formatting, use loguru's API directly after `CONFIG.apply()`
69
74
70
75
### ♻️ Changed
71
76
- **Code structure**: Removed `commons.py` module and moved all imports directly to `__init__.py` for cleaner code organization (no public API changes)
@@ -92,13 +97,15 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
92
97
93
98
### 📦 Dependencies
94
99
- Updated `mkdocs-material` to v9.6.23
100
+
- Replaced `rich >= 13.0.0` with `loguru >= 0.7.0` for logging
95
101
96
102
### 📝 Docs
97
103
- Enhanced documentation in `flixopt/types.py` with comprehensive examples and dimension explanation table
98
104
- Clarified Effect type docstrings - Effect types are dicts, but single numeric values work through union types
99
105
- Added clarifying comments in `effects.py` explaining parameter handling and transformation
Copy file name to clipboardExpand all lines: docs/getting-started.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,24 @@ For all features including interactive network visualizations and time series ag
22
22
pip install "flixopt[full]"
23
23
```
24
24
25
+
## Logging
26
+
27
+
FlixOpt uses [loguru](https://loguru.readthedocs.io/) for logging. Logging is silent by default but can be easily configured. For beginners, use our internal convenience methods. Experts can use loguru directly.
28
+
29
+
```python
30
+
from flixopt importCONFIG
31
+
32
+
# Enable console logging
33
+
CONFIG.Logging.console =True
34
+
CONFIG.Logging.level ='INFO'
35
+
CONFIG.apply()
36
+
37
+
# Or use a preset configuration for exploring
38
+
CONFIG.exploring()
39
+
```
40
+
41
+
For more details on logging configuration, see the [`CONFIG.Logging`][flixopt.config.CONFIG.Logging] documentation.
0 commit comments