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: Migration.Tool.CLI/README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -661,6 +661,25 @@ Add the options under the `Settings` section in the configuration file.
661
661
}
662
662
```
663
663
664
+
## Logging
665
+
666
+
The migration tool uses [.NET logging](https://learn.microsoft.com/en-us/dotnet/core/extensions/logging) with console and file output. Configure log levels and file path in the `Logging` section of `appsettings.json`:
667
+
668
+
```json
669
+
"Logging": {
670
+
"LogLevel": {
671
+
"Default": "Information",
672
+
"Microsoft": "Warning"
673
+
},
674
+
"pathFormat": "logs/log.txt"
675
+
}
676
+
```
677
+
678
+
-**Console** - Real-time progress with timestamps
679
+
-**Files** - Detailed logs at the specified path (default: `logs/log-<date>.txt`)
680
+
681
+
To use logging in custom migrations, inject `ILogger<T>` into your class constructor.
682
+
664
683
## Source instance API discovery
665
684
666
685
> :warning:**Warning** – source instance API discovery is only available when migrating from Kentico Xperience 13.
Copy file name to clipboardExpand all lines: Migration.Tool.Extensions/README.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ The following sections provide detailed instructions for implementing each type
145
145
146
146
### Custom Class Mappings
147
147
148
-
You can customize class mappings to adjust the content model between the source instance and the target Xperience by Kentico instance. For example, you can merge multiple page types into a single content type, remodel page types as [reusable field scehams](https://docs.kentico.com/x/remodel_page_types_as_reusable_field_schemas_guides), or migrate them to the [content hub](https://docs.kentico.com/x/barWCQ) as reusable content.
148
+
You can customize class mappings to adjust the content model between the source instance and the target Xperience by Kentico instance. For example, you can merge multiple page types into a single content type, remodel page types as [reusable field schemas](https://docs.kentico.com/x/remodel_page_types_as_reusable_field_schemas_guides), or migrate them to the [content hub](https://docs.kentico.com/x/barWCQ) as reusable content.
149
149
150
150
1. Create a new class.
151
151
2. Add an `IServiceCollection` extension method. Use a separate method for every class mapping that you wish to configure.
@@ -287,7 +287,7 @@ Implement your decision logic based on available node properties (`NodeClassID`,
287
287
288
288
#### Available Actions
289
289
290
-
##### `options.Drop()`
290
+
#### `options.Drop()`
291
291
Skips migration of the linked page entirely. Use for temporary content, archived pages, or content that should be handled manually.
292
292
293
293
#### `options.Materialize()`
@@ -302,13 +302,10 @@ Creates a content item reference field in an ancestor page that points to the or
0 commit comments