diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index b226b367193ebfd2d3c959463781b09b532b97b3..819d9ae49246a73d13f0e999a3e2ca04c5fe24e9 100644 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -289,7 +289,7 @@ declare class Context extends BaseContext { */ /** * Bundle code directory. - * + * *
**NOTE**:
*
Do not access resource files using concatenated paths. Use @ohos.resourceManager instead.
*
**NOTE**:
*
You are required to manually create the resfile directory in
. The resfile
* directory can be accessed only in read-only mode.
@@ -350,6 +350,18 @@ declare class Context extends BaseContext {
*/
cloudFileDir: string;
+ /**
+ * Log file directory.
+ *
+ * @type { string }
+ * @syscap SystemCapability.Ability.AbilityRuntime.Core
+ * @stagemodelonly
+ * @atomicservice
+ * @since 21
+ * @arkts 1.1&1.2
+ */
+ get logFileDir(): string;
+
/**
* Indicates event hub.
*
@@ -436,7 +448,7 @@ declare class Context extends BaseContext {
/**
* Creates the context based on the bundle name.
- *
+ *
*
**NOTE**:
*
If there are multiple modules in the stage model, resource ID conflicts may occur. You are advised to
* use application.createModuleContext instead.
@@ -482,7 +494,7 @@ declare class Context extends BaseContext {
*/
/**
* Creates the context based on the module name.
- *
+ *
*
**NOTE**:
*
This API is deprecated since API version 12. You are advised to use application.createModuleContext instead.
*
**NOTE**:
*
This API is deprecated since API version 12. You are advised to use application.createModuleContext instead.
*