Commit Graph

44 Commits

Author SHA1 Message Date
5a0adfc2b3 property for log info 2025-09-24 21:57:49 -07:00
4b53686b92 BIG fix to logging
Started using Blocking datastructures making things a lot better.  Thanks Gemini!
2025-09-24 20:56:02 -07:00
5e8bb3acfc Refactor unnamed tuple into a struct 2025-09-02 11:09:21 -07:00
7f3a497eb0 Log Fixes 2025-08-24 16:31:08 -07:00
bba0e96007 Cleanup log system 2025-08-18 20:06:59 -07:00
3f850cc9b0 Implement Xml Serialization Framework with Type Handling and Metadata Caching
- Introduced XmlSer class for XML serialization and deserialization.
- Added TypeMetaCache for caching type metadata and reflection information.
- Implemented various ITypeHandler implementations for handling different types (Primitive, Proxy, ISerializable, Collection, Object).
- Enhanced type resolution with TypeResolver to manage type lookups and conversions.
- Established a configuration class (XmlCfg) to manage serialization settings.
- Integrated support for handling graphs and references in serialized objects.
- Added extensive member processing and filtering based on attributes.
- Ensured compatibility with immutable collections and various data structures.
- Implemented detailed error handling and logging for serialization processes.
2025-05-28 10:46:00 -07:00
f873c42cbf fix(logging): Account for nullable value types
This commit updates logging to handle nullable value types and parameters.

The following changes were made:
- Updated the Value record to use '!' instead of '?' for nullability.
- Added '!' to the default Value.
- Added '!= null' checks to conditional assignment.
- Removed unnecessary nullable-disable compiler directives.
2024-08-15 22:26:47 -07:00
b59baf0239 Title: Refactored variable names and removed unused imports
x) In `Imm.cs`, renamed the delegate parameter from `ZZOld` to `old` for clarity.
x) Also in `Imm.cs`, changed the property name from `ZZOld` to `Old_backing`. This change was made across multiple classes within the file, improving code readability by using a more descriptive name.
x) In `Log.cs`, removed unused imports (`System.Security.Cryptography.X509Certificates`, `System.Dynamic`, `System.Xml.Schema`, and `Microsoft.CodeAnalysis.CSharp.Syntax`) to clean up the codebase.
2024-08-06 12:17:24 -07:00
9aeac39704 Title: Refactored logging system and updated Config.cs
x) Updated `Config.cs` to include a new instance of `XmlFormatter2Cfg` with specified data structure and POD.
x) Renamed the `destroy()` method in `Log.cs` to `shutdown()`.
x) Modified the startup process in `Log.cs` to check if it's already running, providing an info log if true.
x) Changed the encoding for StreamWriter in `startup()` method to UTF8 and added buffer size.
x) Commented out error stream related lines in Log.cs as they are not being used currently.
x) Added exception handling when processing message headers in log events.
x) Added checks for null or whitespace strings before writing them into files or console. Trimmed any null characters from lines before writing them into files.
x) Removed unnecessary white spaces and commented code blocks.
2024-08-04 01:30:23 -07:00
b0b9496c4a x) Updated argument expressions and method overrides in multiple classes
In this commit, several changes were made across different files:

- In `FSM.cs` and `Imm.cs`, the `[CallerArgumentExpression]` attribute was updated to reflect the correct argument names.
- The `ProcessWork` method in `Imm.cs` was changed from virtual to override.
- In `Log.cs`, the `[CallerArgumentExpression]` attribute was updated for clarity.
- A new override for the `GetHashCode()` method was added in `AddressStack.cs`.
- The version of "Microsoft.CodeAnalysis.CSharp" package reference was updated from 4.2.0 to 4.3.1 in 'SharpLib.csproj'.

These changes improve code readability and ensure that methods are correctly overridden where necessary. Also, updating the package version ensures compatibility with newer features or bug fixes provided by Microsoft's C# compiler platform.
2024-07-26 20:53:36 -07:00
f9907bb4e0 x) Updated Thread.Sleep parameter in Log.cs
In the logging/Log.cs file, the parameter of the Thread.Sleep function has been changed from 0 to 1. This change is likely aimed at adjusting the pause duration for a running thread. The context suggests this is a temporary solution until a semaphore or mutex can be implemented as indicated by the existing TODO comment.
2024-07-20 17:41:50 -07:00
9dbd52e736 Log call renames 2024-07-17 16:35:23 -07:00
13d86f73eb Add record method for logging
x) Added a new 'record' method to log debug information with name, path, and line number.
2024-07-03 03:08:03 -07:00
066d3bc7f9 Add global aliases for Immutable collections
x) Refactor logging endpoints to use more concise method names
x) Implement implicit conversion for Value struct
x) Add direct callback functionality to log events
2024-06-21 23:36:53 -07:00
bf7e47e532 Update Value class method signature
x) Changed generic type parameter from T to U in the Get method.
2024-06-18 15:27:46 -07:00
c98db058be Fix log.info call in Log.cs
x) Corrected log.info call for Tracing.MemoryPipe.
2024-06-11 17:15:26 -07:00
404789d87c feat: Add explicit transaction class/ID and split functionality into threaded vs action
x) Added enum for CommitResults
x) Created interface IID<TS>
x) Implemented DB class with lock, objects, committed lists
x) Updated lookup and checkout methods in DB class
x) Added TxStates enum and implemented Tx class with checkout, add, dispose methods
x) Implemented commit method in DB class to handle transactions efficiently
2024-06-05 15:02:21 -07:00
1fd02d1460 Update logging events and improve log details display
x) Add new logging events for GC and ThreadPoolWorkerThread
x) Implement method to extract method information from TraceEvent
x) Enhance log details display for specific event types
x) Improve time header format in log messages
x) Refactor verbose logging messages to include type friendly names
2024-06-02 16:26:11 -07:00
7f9b210bbd Comment out detailed CLR logging 2024-05-27 16:50:45 -07:00
a62724bf67 Update logging and event handling in GC.cs and Log.cs
x) Added new event handling for runtime garbage collection events
x) Implemented logging endpoints for different categories
x) Improved object creation handling based on type constructors
2024-05-27 16:47:39 -07:00
32d6c29443 feat: Add RuntimeGCEventsPrinter class for monitoring GC events
x) Implement PrintRuntimeGCEvents method to monitor GC events in a specified process
x) Refactor logs for structured logging using interpolated strings
x) Introduce TraceLogMonitor class for real-time monitoring of exceptions and module loads
2024-05-27 01:13:43 -07:00
0fce863a81 Refactor logs for structured logging and add new Value struct:
- Refactor various logs to enable automagic structured logging
- Add `Value` struct for creating values with debug expressions
- Update `LogEvent` constructor to include an expression field
- Modify log methods to pass debug expressions for messages
- Implement new methods for logging values and objects with debug expressions
2024-05-26 22:27:45 -07:00
193067bf5c Fix nullability issues in Log.cs and Imm.cs
- Updated Log.cs to handle nullable object types
  - Modified LogEvent class to accept nullable object types
  - Adjusted methods in log class to use nullable object types where necessary
  - Initialized s_thread variable with Thread.CurrentThread

- Updated MemorySourceText and MemoryRefResolver classes in Script.cs
  - Implemented overrides for SourceText properties and methods in MemorySourceText class
  - Refactored MemoryRefResolver class to handle nullability correctly
2024-05-26 19:49:45 -07:00
05656d469a Update logging functionality: Refactored log stop method, added missing end line write, and improved time formatting. Made adjustments to AngleSingle class for nullability. 2024-05-26 16:49:29 -07:00
f672ab9d2f Add log header and footer with timestamp, refactor header functions.
- Added header and footer logs with timestamps for each run.
- Refactored header functions to improve readability and maintainability.
2024-05-25 18:11:00 -07:00
c9cbacb1c9 x) Pass dbgExp through to the right places
x) Bunch of logging fixes
2024-05-21 22:26:54 -07:00
39ad03178d Remove consol debug write 2024-05-21 18:10:56 -07:00
d750b2eed5 Fixes
x) Make time cleaner
x) remove unsued code
2024-05-21 18:08:43 -07:00
492ca38839 Cleanup
x) Renames
x) Better relativation
2024-05-05 23:25:54 -07:00
380974d673 Log fixes 2024-05-05 12:44:45 -07:00
bea7080a5c Immutability and strip the / off the path
x) Better path substring
x) Add some interfaces for immutability
2024-04-30 12:19:56 -07:00
a3e79e83b4 FSM
x) Add whatFile for fast cached lookup of filenames from a path
x) Debug renames
x) Add default OnChanged handler that does nothing
x) Cleanups to the FSM stuff
2024-04-21 23:31:47 -07:00
cf519ce865 x) Change crlf to lf 2024-04-07 19:21:33 -07:00
2ebedc7a7d x) Update to 8
x) Respect logging types
2024-03-07 17:33:01 -08:00
94ce81da96 x) split out formatting text portion of log messages 2024-02-20 14:44:39 -08:00
71a7a115e2 Various immutable changes 2024-01-21 22:16:02 -08:00
9a74f8ca15 x) fix file separators 2023-11-04 12:32:23 -07:00
f14a95e957 Scriping and logging work 2022-09-27 23:06:04 -07:00
be5e5d5bc4 Small fixers 2022-09-04 20:17:40 -07:00
Marc Hernandez
115ab629dc Changes 2022-02-26 21:30:00 -08:00
Marc Hernandez
3b71cc49e6 Move Distrubuted stuff into my libs 2021-06-19 18:25:45 -07:00
c4f1dd5edb x) Thread my logger. It now doesnt impact the main threads 2021-06-19 12:16:42 -07:00
Marc Hernandez
2844950af3 Updates to SharpLib 2021-06-17 01:48:02 -07:00
6e2e40dee3 Moving some files around 2019-12-08 00:16:21 -08:00