Skip to content

Commit b6579b1

Browse files
Merge pull request #53 from purview-dev/removing-logging-when-types-not-available
v2.0 Release
2 parents bb46887 + 07e1d3c commit b6579b1

1,808 files changed

Lines changed: 16517 additions & 4106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 KJL Solutions Ltd.
3+
Copyright (c) 2025 KJL Solutions Ltd.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,53 @@
11
include .build/common.mk
22

33
# Variables
4-
ROOT_FOLDER = src/
4+
ROOT_FOLDER = ./src/
55
SOLUTION_FILE = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln
66
TEST_PROJECT = $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator.sln
77
CONFIGURATION = Release
88

9-
PACK_VERSION = 1.1.0
9+
PACK_VERSION = 2.0.0
1010
ARTIFACT_FOLDER = p:/sync-projects/.local-nuget/
1111

12+
# Common variables
13+
COLOUR_RESET = \033[0m
14+
15+
COLOUR_BLACK = \033[30m
16+
COLOUR_RED = \033[31m
17+
COLOUR_GREEN = \033[32m
18+
COLOUR_ORANGE = \033[33m
19+
COLOUR_BLUE = \033[34m
20+
COLOUR_PURPLE = \033[35m
21+
COLOUR_CYAN = \033[36m
22+
COLOUR_WHITE = \033[37m
23+
24+
COLOUR_GREY = \033[90m
25+
1226
# Targets
1327
build: ## Builds the project.
14-
dotnet build $(SOLUTION_FILE) --configuration $(CONFIGURATION)
28+
@echo -e "Building $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET) with $(COLOUR_ORANGE)$(CONFIGURATION)$(COLOUR_RESET)..."
29+
@dotnet build $(SOLUTION_FILE) --configuration $(CONFIGURATION)
1530

1631
test: ## Runs the tests for the project.
17-
dotnet test $(TEST_PROJECT) --configuration $(CONFIGURATION)
32+
@echo -e "Running tests for $(COLOUR_BLUE)$(TEST_PROJECT)$(COLOUR_RESET) with $(COLOUR_ORANGE)$(CONFIGURATION)$(COLOUR_RESET)..."
33+
@dotnet test $(TEST_PROJECT) --configuration $(CONFIGURATION)
1834

1935
pack: ## Packs the project into a nuget package using PACK_VERSION argument.
20-
dotnet pack -c $(CONFIGURATION) -o $(ARTIFACT_FOLDER) $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator/Purview.Telemetry.SourceGenerator.csproj --property:Version=$(PACK_VERSION) --include-symbols
36+
@echo -e "Packing $(COLOUR_BLUE)Source Generator$(COLOUR_RESET) with $(COLOUR_ORANGE)$(PACK_VERSION)$(COLOUR_RESET)..."
37+
@dotnet pack -c $(CONFIGURATION) -o $(ARTIFACT_FOLDER) $(ROOT_FOLDER)Purview.Telemetry.SourceGenerator/Purview.Telemetry.SourceGenerator.csproj --property:Version=$(PACK_VERSION) --include-symbols
2138

2239
format: ## Formats the code according to the rules of the src/.editorconfig file.
23-
dotnet format $(ROOT_FOLDER)
40+
@echo -e "Formatting $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET)..."
41+
@dotnet format $(ROOT_FOLDER)
2442

2543
act:
44+
@echo -e "Running $(COLOUR_BLUE)act$(COLOUR_RESET)..."
2645
act -P ubuntu-latest=-self-hosted
46+
47+
vs: ## Opens the project in Visual Studio.
48+
@echo -e "Opening $(COLOUR_BLUE)$(SOLUTION_FILE)$(COLOUR_RESET) in $(COLOUR_ORANGE)Visual Studio$(COLOUR_RESET)..."
49+
@start $(SOLUTION_FILE)
50+
51+
code: ## Opens the project in Visual Studio Code.
52+
@echo -e "Opening $(COLOUR_BLUE)Visual Studio Code$(COLOUR_RESET)..."
53+
@code .

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ The latest version is available on [NuGet](https://www.nuget.org/packages/Purvie
66

77
* .NET Framework 4.7.2
88
* .NET Framework 4.8
9-
* .NET 7
109
* .NET 8
1110
* .NET 9
1211

@@ -35,11 +34,17 @@ interface IEntityStoreTelemetry
3534
void RetrievedEntity(Activity? activity, float totalValue, int lastUpdatedByUserId);
3635

3736
/// <summary>
38-
/// Generates a structured log message using an ILogger.
37+
/// Generates a structured log message using an ILogger - defaults to Informational.
3938
/// </summary>
4039
[Log]
4140
void ProcessingEntity(int entityId, string updateState);
4241

42+
/// <summary>
43+
/// Generates a structured log message using an ILogger, specifically defined as Informational.
44+
/// </summary>
45+
[Info]
46+
void ProcessingAnotherEntity(int entityId, string updateState);
47+
4348
/// <summary>
4449
/// Adds 1 to a Counter<T> with the entityId as a Tag.
4550
/// </summary>

bun.lock

Lines changed: 640 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

commitlint.config.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)