Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LcdLogger
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoni Zaprzała
LcdLogger
Commits
104eeacd
Commit
104eeacd
authored
Jul 01, 2026
by
AntekZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes 2
parent
63d6d367
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
LogFileManager.cs
LcdLogger/Services/LogFileManager.cs
+1
-1
LogQueue.cs
LcdLogger/Services/LogQueue.cs
+3
-3
appsettings.Development.json
LcdLogger/appsettings.Development.json
+18
-1
No files found.
LcdLogger/Services/LogFileManager.cs
View file @
104eeacd
...
...
@@ -106,7 +106,7 @@ namespace LcdLogger.Services
await
_fileStream
.
FlushAsync
(
cancellationToken
);
await
_fileStream
.
DisposeAsync
();
var
justClosedFile
=
_currentPath
;
//
var justClosedFile = _currentPath;
//_ = Task.Run(async () =>
//{
...
...
LcdLogger/Services/LogQueue.cs
View file @
104eeacd
...
...
@@ -8,7 +8,7 @@ namespace LcdLogger.Services
{
private
readonly
Channel
<
LogBatch
>
_channel
;
//
dostep do mechanizmu czytania buforu
//
access to buffer reading mechanism
public
readonly
ChannelReader
<
LogBatch
>
Reader
;
public
LogQueue
(
IOptions
<
LogOptions
>
options
)
...
...
@@ -20,13 +20,13 @@ namespace LcdLogger.Services
SingleWriter
=
false
};
//
bufor w pamieci Ram - trzyma kolejke batchy
//
in-memory buffer holding a queue of batches
_channel
=
Channel
.
CreateBounded
<
LogBatch
>(
channelOptions
);
Reader
=
_channel
.
Reader
;
}
//
wpuszcza LogBatch z endpointu do kolejki
//
pushes a LogBatch from the endpoint into the queue
public
bool
TryEnqueue
(
LogBatch
batch
)
{
return
_channel
.
Writer
.
TryWrite
(
batch
);
...
...
LcdLogger/appsettings.Development.json
View file @
104eeacd
{
"Log"
:
{
"Directory"
:
"/var/log/lcd-logger"
,
"RotateAtBytes"
:
2097152
,
"MaxTotalBytes"
:
104857600
,
"MinLevel"
:
2
,
"MaxBatchEntries"
:
100
,
"QueueCapacity"
:
250
},
"Kestrel"
:
{
"Endpoints"
:
{
"Http"
:
{
"Url"
:
"http://127.0.0.1:8082"
}
},
"Limits"
:
{
"MaxRequestBodySize"
:
2097152
}
},
"Logging"
:
{
"LogLevel"
:
{
"Default"
:
"Information"
,
"Microsoft.AspNetCore"
:
"Warning"
}
}
},
"AllowedHosts"
:
"127.0.0.1"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment