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: site/i18n/en/docusaurus-plugin-content-docs/current/logger.md
+48-2
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,8 @@ Upgrade the dependency versions in `package.json`, pay attention to the `depende
34
34
35
35
In most scenarios, the two versions are compatible, but there will be certain differences in configuration. For this reason, we have provided some methods to be as compatible with the old logic as possible. For complete Breaking Change changes, please view [the change document](https://github.com/midwayjs/logger/blob/main/BREAKING-3.md).
36
36
37
+
If you have old log configuration in your configuration file, you can refer to **Common Problem** to convert it.
38
+
37
39
38
40
39
41
## Logger path and file
@@ -897,7 +899,7 @@ export class MainConfiguration {
897
899
898
900
899
901
900
-
## Common problem
902
+
## Common Problem
901
903
902
904
903
905
@@ -917,4 +919,48 @@ Generally speaking, the server console log (console) is closed and will only be
917
919
918
920
### 3. Some Docker environments fail to start
919
921
920
-
Check whether the user who started the current application in the directory where the log is written has permissions.
922
+
Check whether the user who started the current application in the directory where the log is written has permissions.
923
+
924
+
925
+
926
+
### 4. How to convert if there is an old configuration?
927
+
928
+
The log library provides a conversion method to assist users in converting old configurations into new configurations.
Note that this method can only convert the old configuration. If the configuration contains the old and new configurations, the new configuration will not take effect.
944
+
945
+
:::
946
+
947
+
For example, if there are logs in your `src/config/config.default.ts` that use old configurations, you can use this method for compatibility.
0 commit comments