Commit Graph

45 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire cd99b7af99 Defaults
- Updated documentation
2023-03-03 15:21:41 +02:00
Tristan B. Velloza Kildaire 9b79e6f154 Core
- Updated documentation

Context

- Updated documentation

Transform

- Updated documentation
2023-03-03 15:21:16 +02:00
Tristan B. Velloza Kildaire 2a6c0b493f - Fixed API documentation links 2023-03-03 15:17:27 +02:00
Tristan B. Velloza Kildaire c7cb58c1db Package
- Updated module documentation for `dlog` package module
- Added documentation for `dlog.core`, `dlog.transform`, `dlog.context` and `dlog.defaults` public module imports
2023-03-03 15:15:22 +02:00
Tristan B. Velloza Kildaire adf502335e - Updated 2023-03-03 15:11:11 +02:00
Tristan B. Velloza Kildaire 774c435307 - License update
- Updated .gitignore
2023-03-02 16:24:10 +02:00
Tristan B. Velloza Kildaire e392a7a568 - Updated README 2023-03-02 11:55:38 +02:00
Tristan B. Velloza Kildaire aaa786c86d Logger
- Fixed error where `multiArgJoiner` is `private` and not `protected` (meaning inherited loggers would not be able to access it)
2023-03-02 11:39:20 +02:00
Tristan B. Velloza Kildaire 23f155174e Logger
- Don't make `debug_`, `warn`, `info` or `error` final
2023-03-02 11:33:25 +02:00
Tristan B. Velloza Kildaire 484b9f949b Context
- Added documentation headers for `CompilationInfo`
2023-03-02 11:26:41 +02:00
Tristan B. Velloza Kildaire 77448e3245 Logger
- Allow calling `debug_(TextType...)(TextType)` using `dbg`
2023-03-02 11:12:35 +02:00
Tristan B. Velloza Kildaire d58c4076ed Logger
- Implemented `info(TextType...)(TextType)`
- Implemented `debug_(TextType...)(TextType)`
- Implemented `warn(TextType...)(TextType)`
2023-03-02 11:11:57 +02:00
Tristan B. Velloza Kildaire 20dc3c0058 Context
- Implemented `setLevel(Level)` and `getLevel()`
2023-03-02 11:09:45 +02:00
Tristan B. Velloza Kildaire 70dc9c0449 Logger
- Added missing header comment for the consructor for `Logger`
- Implemented `error(TextType...)(TextType)`
2023-03-02 11:09:28 +02:00
Tristan B. Velloza Kildaire 16459b2e4d Logger
- Removed aliases `logc` and `log`
- Renamed `log3Ctx` to `logc`
- Renamed `log3` to `log`
2023-03-02 10:58:42 +02:00
Tristan B. Velloza Kildaire 6a11312763 Utilities
- Added missing import of the `to` template from `std.conv`
2023-03-02 10:56:50 +02:00
Tristan B. Velloza Kildaire 3b9562bd07 Package
- Removed public import of `dlog.utilities`
2023-03-02 10:56:16 +02:00
Tristan B. Velloza Kildaire 7e10495862 Utilities
- Moved `flatten()` to the `dlog.utilities` module

Package

- Updated package to import `dlog.utilities`

Core

- Import `flatten` from `dlog.utilities`
2023-03-02 10:55:55 +02:00
Tristan B. Velloza Kildaire 28c546ff16 Logger
- Fixed misunderstanding that caused a bug in `log3(TextType...)(TextType)`
- Moved unit test embedded in the `Logger` class outside into the module-level
- Implemented `args(TextType...)(TextType)` for flattening an `AliasSeq`
- Removed spurious `writeln` calls within some unit tests
2023-03-02 10:53:08 +02:00
Tristan B. Velloza Kildaire 528654e428 Logger
- Added a statci method `flatten(...)` which lets you flatten an arbitrary sequance of actual argumnets (an AliasSeq) into a `string[]`
- Removed old commented-out code
- Updated documentation for methods
- Ensure thge aliases `log` and `logc` are public

Context

- Added `Level` enum with members `INFO`, `WARN`, `ERROR` and `DEBUG`
- Added a field `level` to `Context`
2023-03-02 10:40:32 +02:00
Tristan B. Velloza Kildaire 623126a830 Package
- Added missing import for `dlog.context`
2023-03-01 16:32:38 +02:00
Tristan B. Velloza Kildaire 494b96e4a0 Context
- Added the idea of a `Context`
- A `Context` default has `CompilationInfo` attached to it

Transform

- Switched to using `Context`

Core

- Added new `Context`-based functions, removed old
- Disabled some unit tests for now

Defaults

- Updated the defaults
2023-03-01 16:30:49 +02:00
Tristan B. Velloza Kildaire fbd45f1763 Core
- Fixed bug whereby the meta programming was only enabled during `unittest` build mode
2023-03-01 10:17:04 +02:00
Tristan B. Velloza Kildaire bf2e54904b Core
- Bug fix for the usage of `contextExtras` (which was not working prior)

Unit tests

- Added a new unit test to fix the `contextExtras` feature of `log(...)`
2023-03-01 10:09:18 +02:00
Tristan B. Velloza Kildaire b2b5d46d8e Core
- Reworked the meta programming in `log2` to actually function correctly

Unit tests

- Added some more unit tests testing out `log2`
2023-03-01 10:04:27 +02:00
Tristan B. Velloza Kildaire c92f147773 Logger
- Working on the new `log2` function

Unit tests

- Added some padding prints to the unit tests
- Added a universal import that only activates on `unittest` build mode
- Added test for `log2` method
2023-03-01 09:15:10 +02:00
Tristan B. Velloza Kildaire 5a503fb14c Context
- Added new Context class for future version
2023-03-01 09:14:14 +02:00
Tristan B. Velloza Kildaire d2135062f3 Package
- Added missing import for `dlog.transform`
2023-02-27 19:11:51 +02:00
Tristan B. Velloza Kildaire 6008c8f333 Repository
- Updated .gitignore

Clean up

- General clean up
2023-02-27 19:07:09 +02:00
Tristan B. Velloza Kildaire c410dd3bc0 - Made unittests more concise 2023-01-07 21:17:39 +02:00
Tristan B. Velloza Kildaire ac363801c3 Added .gitignore 2023-01-07 21:11:12 +02:00
Tristan B. Velloza Kildaire 6e7ab612dc - Now you can use arbitrary amount of arguments as the message text
- Ability to set the joiner of arguments in multi-variate case
2023-01-07 21:10:15 +02:00
Tristan B. Velloza Kildaire 9c55fee725 Finished README.md 2021-12-25 10:44:52 +02:00
Tristan B. Velloza Kildaire c975b2d99b Fixed docstrings for modules 2021-12-23 15:16:31 +02:00
Tristan B. Velloza Kildaire e4509f1dfc Added missing docstrings 2021-12-23 15:14:51 +02:00
Tristan B. Velloza Kildaire 24bc5bec34 Removed testing module 2021-12-23 15:14:41 +02:00
Tristan B. Velloza Kildaire e22c677026 Added missing docstring 2021-12-23 15:11:40 +02:00
Tristan B. Velloza Kildaire 69caf75ae6 Updated README 2021-12-23 15:06:55 +02:00
Tristan B. Velloza Kildaire 09c7d85434 Added missing docstrings 2021-12-23 15:05:47 +02:00
Tristan B. Velloza Kildaire fec60c560a Removed TODO 2021-12-23 15:05:39 +02:00
Tristan B. Velloza Kildaire be670c44d0 Add link to DUB repo 2021-12-23 15:01:48 +02:00
Tristan B. Velloza Kildaire 415076d832 Fixed header 2021-12-23 14:57:29 +02:00
Tristan B. Velloza Kildaire 40f80b9351 Added logo 2021-12-23 14:55:37 +02:00
Tristan B. Velloza Kildaire 2663711b4a Added section explaining the context array 2021-12-23 14:49:16 +02:00
Tristan B. Velloza Kildaire 5eb73a3fbc Initial commit 2021-12-23 12:14:36 +02:00