# Object RealtimeLogManager.getCurrentState()
Start from base library version 2.19.4. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Not supported
Real-time logs aggregate cached logs for a certain time interval, and if the cached content exceeds the limit, it is discarded. This method gets the current cache space remaining.
> Note: The base library will add some structured data when the log is reported, and the warning log will be added in case of report overflow, so the current occupancy information obtained by this method will be larger than expected.
# Return value
|size||number||Space used in the current cache, in bytes|
|maxSize||number||Maximum currently available cache space in bytes|
|logCount||number||Number of log bars in the current cache|
|maxLogCount||number||Maximum number of log entries in the current cache|