Feature: Improve logging #170

Closed
opened 2024-04-08 16:02:31 +01:00 by deavmi · 32 comments
Owner

Purpose ✍️

The current logging mechanism is not as nice as it could be. It doesn't show line information and so forth.

Also I would probably want to distinguish between logs for debug build and those that actually are for user usage.

So a custom MessageTransform would be nice but that means migrating to dlog.

Todo 🗒️

  • Switch over from gprintln to DEBUG, INFO, ERROR and WARNING
  • Test
  • Decide on the logging style to use
  • Close logger when done
    • NOTE: This might require a dlog and gogga update
## Purpose ✍️ The current logging mechanism is not as nice as it could be. It doesn't show line information and so forth. Also I would probably want to distinguish between logs for debug build and those that actually are for user usage. So a custom `MessageTransform` would be nice but that means migrating to `dlog`. ## Todo 🗒️ - [x] Switch over from `gprintln` to `DEBUG`, `INFO`, `ERROR` and `WARNING` - [x] Test - [x] Decide on the logging style to use - [ ] ~~Close logger when done~~ * **NOTE**: This might require a `dlog` _and_ `gogga` update
deavmi added reference feature/logging_upgrade 2024-04-08 16:02:36 +01:00
deavmi added this to the Compiler project 2024-04-08 16:02:44 +01:00
deavmi self-assigned this 2024-04-08 16:02:48 +01:00
deavmi added spent time 2024-04-08 16:02:55 +01:00
20 minutes
deavmi added the
needsfix
qol
labels 2024-04-08 16:03:04 +01:00
deavmi added this to the Basics milestone 2024-04-08 16:03:09 +01:00
deavmi modified the milestone from Basics to Performance and Clarity 2024-04-08 16:03:16 +01:00
deavmi modified the milestone from Performance and Clarity to Clean ups 2024-04-08 16:03:19 +01:00
deavmi added the due date 2024-04-30 2024-04-08 16:03:29 +01:00
deavmi started working 2024-04-08 16:10:35 +01:00
Author
Owner

Gogga is NOT fuego! 🔥 Still got problems it seems

Gogga is NOT fuego! 🔥 Still got problems it seems
deavmi stopped working 2024-04-08 16:42:13 +01:00
31 minutes 39 seconds
Author
Owner

Busy re-working dlog and gogga

Busy re-working dlog and gogga
deavmi added spent time 2024-04-09 16:40:41 +01:00
3 minutes
deavmi added spent time 2024-04-09 16:40:49 +01:00
3 hours
deavmi started working 2024-04-09 16:40:54 +01:00
Author
Owner

Gogga is almost done

Gogga is almost done
Author
Owner

Gogga is almost done

Gogga is done
Dlog is still being worked on 🚧 t

> Gogga is almost done Gogga is done ✅ Dlog is still being worked on 🚧 t
Author
Owner

Dlog is done

Dlog is done ✅
Author
Owner

Todo

  • DLog v2 implementation (+testing)
  • Gogga update implementation (+testing)
  • DLog website update
  • DLog docs update
  • Gogga docs update
## Todo - [x] DLog v2 implementation (+testing) - [x] Gogga update implementation (+testing) - [x] DLog website update - [x] DLog docs update - [x] Gogga docs update
Author
Owner

Almost done with everything, besdies the dlog site and gogga docs. Okay ionly dlog is almost done./

Almost done with everything, besdies the dlog site and gogga docs. Okay ionly dlog is almost done./
Author
Owner

Taking a greak now

Taking a greak now
deavmi stopped working 2024-04-09 18:32:42 +01:00
1 hour 51 minutes
deavmi started working 2024-04-10 12:54:33 +01:00
Author
Owner

Gogga now works in tlang

Gogga now works in tlang
Author
Owner

Just gogga docs needed now...

Just gogga docs needed now...
deavmi modified the due date from 2024-04-30 to 2024-04-12 2024-04-10 13:17:49 +01:00
deavmi stopped working 2024-04-10 13:18:00 +01:00
23 minutes 27 seconds
deavmi started working 2024-04-10 13:19:33 +01:00
Author
Owner

Just gogga docs needed now...

Done

> Just gogga docs needed now... Done ✅
Author
Owner

Just the dlog website now...

Just the dlog website now...
deavmi stopped working 2024-04-10 13:24:36 +01:00
5 minutes 4 seconds
deavmi started working 2024-04-10 16:04:24 +01:00
Author
Owner

Fixing up dlog site now

Fixing up dlog site now
Author
Owner

Fixing up dlog site now

All done

> Fixing up dlog site now All done ✅
Author
Owner

Now to focus on the tlang logging itself (also almost done).

Now to focus on the tlang logging itself (also almost done).
Author
Owner

Will finish up the rest tonight, so line info matches up correctly.

Will finish up the rest tonight, so line info matches up correctly.
deavmi stopped working 2024-04-10 16:14:00 +01:00
9 minutes 36 seconds
deavmi started working 2024-04-10 17:08:50 +01:00
Author
Owner

Working on making gogga actually usable in a mixin sense from other packages

Working on making gogga actually usable in a mixin sense from other packages
deavmi stopped working 2024-04-10 18:41:15 +01:00
1 hour 32 minutes
deavmi started working 2024-04-10 19:24:31 +01:00
deavmi stopped working 2024-04-10 19:24:38 +01:00
7 seconds
deavmi started working 2024-04-10 20:48:11 +01:00
deavmi stopped working 2024-04-11 07:19:07 +01:00
10 hours 30 minutes
Author
Owner

Oops, left timer running.

Oops, left timer running.
deavmi started working 2024-04-11 07:20:11 +01:00
Author
Owner

New Gogga is ready to be released

New Gogga is ready to be released
Author
Owner

New Gogga is ready to be released

Released as version 3.1.0

> New Gogga is ready to be released Released as version `3.1.0` ✅
Author
Owner

New Gogga is ready to be released

Released as version 3.1.0

Needs a fix somehwre with importing of some types.

> > New Gogga is ready to be released > > Released as version `3.1.0` ✅ Needs a fix somehwre with importing of some types.
deavmi stopped working 2024-04-11 07:40:33 +01:00
20 minutes 22 seconds
deavmi started working 2024-04-11 07:48:57 +01:00
Author
Owner

Fixing problem now...

Fixing problem now...
Author
Owner

Fixing problem now...

Fixed

> Fixing problem now... Fixed ✅
Author
Owner

Correct methods available and now tested, just need to switch over to using them now

Correct methods available and now tested, just need to switch over to using them now
deavmi modified the due date from 2024-04-12 to 2024-04-30 2024-04-11 08:00:03 +01:00
deavmi stopped working 2024-04-11 08:00:12 +01:00
11 minutes 15 seconds
deavmi added spent time 2024-04-11 16:31:48 +01:00
2 minutes
deavmi modified the due date from 2024-04-30 to 2024-04-12 2024-04-11 16:32:05 +01:00
deavmi started working 2024-04-11 16:33:21 +01:00
deavmi stopped working 2024-04-11 16:35:47 +01:00
2 minutes 26 seconds
deavmi started working 2024-04-11 22:25:25 +01:00
Author
Owner

Logging

  • Migrated all build-related code to new logging mechanism
Logging - Migrated all build-related code to new logging mechanism
Author
Owner

Logging

  • Migrated all build-related code to new logging mechanism

Unittests

  • Moved to new logging
> Logging > > - Migrated all build-related code to new logging mechanism Unittests - Moved to new logging
deavmi stopped working 2024-04-11 23:20:36 +01:00
55 minutes 11 seconds
deavmi started working 2024-04-11 23:20:41 +01:00
deavmi stopped working 2024-04-11 23:23:05 +01:00
2 minutes 24 seconds
deavmi added spent time 2024-04-13 22:17:06 +01:00
2 minutes
deavmi started working 2024-04-13 22:17:09 +01:00
Author
Owner

Logging

  • If DBG_VERBOSE_LOGGING build variable is set then use verbose logging style
Logging - If `DBG_VERBOSE_LOGGING` build variable is set then use verbose logging style
deavmi modified the due date from 2024-04-12 to 2024-04-15 2024-04-13 22:17:42 +01:00
deavmi stopped working 2024-04-13 22:17:46 +01:00
37 seconds
deavmi started working 2024-04-13 22:17:50 +01:00
Author
Owner

Should be ready to merge soonish

Should be ready to merge soonish
Author
Owner

Logging

  • Using the build variable DBG_DEBUG_LOGGING will now allow you to enable debug logging

Dub

  • Enable debug logging by default
Logging - Using the build variable `DBG_DEBUG_LOGGING` will now allow you to enable debug logging Dub - Enable debug logging by default
deavmi stopped working 2024-04-13 22:25:53 +01:00
8 minutes 2 seconds
deavmi started working 2024-04-14 09:49:06 +01:00
Author
Owner

Ready for merging.

Ready for merging.
Author
Owner

Merging...

Merging...
Author
Owner

Merged

Merged ✅
deavmi stopped working 2024-04-14 09:54:33 +01:00
5 minutes 27 seconds
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 20 hours 17 minutes
deavmi
20 hours 17 minutes
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2024-04-15

Dependencies

No dependencies set.

Reference: tlang/tlang#170
No description provided.