Class ZegoLogConfig


  • public class ZegoLogConfig
    extends java.lang.Object
    Log config. Description: This parameter is required when calling [setlogconfig] to customize log configuration. Use cases: This configuration is required when you need to customize the log storage path or the maximum log file size. Caution: None.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int logCount
      Log files count.
      java.lang.String logPath
      The storage path of the log file.
      long logSize
      Maximum log file size(Bytes).
    • Constructor Summary

      Constructors 
      Constructor Description
      ZegoLogConfig()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logPath

        public java.lang.String logPath
        The storage path of the log file. Description: Used to customize the storage path of the log file. Use cases: This configuration is required when you need to customize the log storage path. Required: False. Default value: The default path of each platform is different, please refer to the official website document https://docs.zegocloud.com/faq/express_sdkLog. Caution: Developers need to ensure read and write permissions for files under this path.
      • logSize

        public long logSize
        Maximum log file size(Bytes). Description: Used to customize the maximum log file size. Use cases: This configuration is required when you need to customize the upper limit of the log file size. Required: False. Default value: 5MB (5 * 1024 * 1024 Bytes). Value range: Minimum 1MB (1 * 1024 * 1024 Bytes), maximum 100M (100 * 1024 * 1024 Bytes), 0 means no need to write logs. Caution: The larger the upper limit of the log file size, the more log information it carries, but the log upload time will be longer.
      • logCount

        public int logCount
        Log files count. Default is 3. Value range is [3, 20].
    • Constructor Detail

      • ZegoLogConfig

        public ZegoLogConfig()