Comments (5)
Currently, there are no limits on buffer-queue, so if log output is too fast (while(true)! ), the memory will continue to grow because the consuming side cannot keep up.
If the standard logger is used, wait or drop when the buffer-queue limit is reached (default is wait)
While waiting, the buffer will be successfully consumed and GC will be performed.
Adding buffer options (Grow (current/default), Wait, Drop) might be a good.
from zlogger.
In #143, we added ZLoggerOptions.FullMode
.
.Block or .Drop is used can be take care of memory usage.
public enum BackgroundBufferFullMode
{
/// <summary>
/// Grow the queue. (default)
/// </summary>
Grow,
/// <summary>
/// Wait until there's more room in the queue.
/// </summary>
Block,
/// <summary>
/// Drop the overflowing log entry.
/// </summary>
Drop,
}
from zlogger.
When should I expect a release?
from zlogger.
after reviewd #145, #147, It will probably be tomorrow.
from zlogger.
By the way, personally, I think we should opt for Grow.
The server is already at its limit, since any traffic that causes Wait would mean the application itself is failing.
As for Drop, missing logs should not be acceptable.
from zlogger.
Related Issues (20)
- v2 release task
- Improvement: Shared Files HOT 2
- Improvement: Add optional MessageCap HOT 2
- Make use of "Interceptors" feature from C# 12 (Experimental) HOT 3
- Possible symbol name collisions in generated code HOT 2
- Recommendation for Caller* attributes HOT 3
- Add Intermediate String Interpolater HOT 3
- Add native CLEF format json logging support HOT 7
- UnitLoggerFactory formatting problems with JSON messages HOT 4
- NuGet Clone failure in Unity With dotnet 4.8.1 HOT 5
- Dependency errors in Unity 2023.2 HOT 7
- Some AOT warning HOT 2
- MessageSequence's IEnumerable Handling Assumptions lead to erroneous serialization HOT 13
- NullReferenceException due to Key being Null in MagicalBox.ReaderCache HOT 9
- Exception output content with plain text is missing HOT 1
- Load Assembly faild in unity 2021.3.12(MacOs)/15(Win11) HOT 4
- FileLogger not Compatible with WebGL HOT 1
- Typo in the "about" text to the repository HOT 1
- IL2CPP build problem with UnityLoggerFactory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlogger.