Comments (3)
I don't have access to a copy of Delphi anymore, but the logger wasn't meant for sending large chunks of data over UDP. That would require breaking down the data into 400-500 byte chunks and sending them consecutively.
Now This is just my personal opinion: Not really sure if this needs to be supported. There seems to be something wrong at the architectural level. You simply don't dump your entire mongodb document to a udp logging server. If you are forced by law, at least do it element by element instead of sending the entire array at once?
from loggerpro.
Can you provide a self-contained sample?
from loggerpro.
Sure :-)
I adjusted your 100_udp_syslog example from the samples folder (see attached zip file)
Basically I just commented out the random output of log messages and replaced it with a static function to load the dummy file (also attached), which needs to be copied to the same location as the compiled binary.
procedure TFUDPServerClientForm.UDPClientTimerTimer(Sender: TObject);
var
SList : TStringlist;
begin
slist := Tstringlist.Create;
slist.LoadFromFile('.\dummy.json');
Log.Debug(slist[0], 'DEBUG');
// case RandomRange(0, 5) of
// 0: Log.Debug('debug message', 'DEBUG');
// 1: Log.Info('info message', 'INFO');
// 2: Log.Warn('warn message', 'WARN');
// 3: Log.Error('error message', 'ERROR');
// 4: Log.Info('Some Access Violation', 'INFO');
// end;
slist.Free;
end;
The Exception only pops up when debugging the application. When the application runs standalone, the message is never sent.
I don't know what would be the best/correct approach in that case. Split up the message? Send a warning with "message to long" or "message shortened" ?
from loggerpro.
Related Issues (20)
- Feature request: conditional compilation for depencencies HOT 1
- AddAppender raises AccessViolation and duplicates appenders HOT 2
- DelAppender - Argument Out Of Range Exception HOT 2
- FileAppender write in the wrong position. HOT 5
- Only one backup file ever used HOT 2
- Application Freeze on freelibrary with dll using LoggerPro HOT 1
- Feature Request for detail level HOT 1
- Enabling appenders feature request HOT 4
- Hi Microsoft AppCenter Support HOT 2
- Question: PID and log rotation? HOT 3
- A small XE4 compilation issue and a fix HOT 1
- why not fatal error level log? HOT 4
- Changes introduced in change request #103 produce an exception HOT 1
- Authentication on TElasticSearchAppender HOT 1
- [feature request] EMail Appender: Collective E-Mail HOT 1
- Please add the possibility to log to a TStringList.
- Log Rotate does nort work properly: why? HOT 6
- Database Appender HOT 2
- [Feature Request] A possibility to change the UTC Time of TLoggerProUDPSyslogAppender to local date and time
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 loggerpro.