RPutilities.Utils 1.0.15

dotnet add package RPutilities.Utils --version 1.0.15                
NuGet\Install-Package RPutilities.Utils -Version 1.0.15                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RPutilities.Utils" Version="1.0.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RPutilities.Utils --version 1.0.15                
#r "nuget: RPutilities.Utils, 1.0.15"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RPutilities.Utils as a Cake Addin
#addin nuget:?package=RPutilities.Utils&version=1.0.15

// Install RPutilities.Utils as a Cake Tool
#tool nuget:?package=RPutilities.Utils&version=1.0.15                

Any feedback is welcome. also if you catch any bug/issue in any function, please reachout via email to ravipatel_3009@hotmail.com.

Fuctions List:

- JSON.getJSON_key_Value(string JSON_string, string JSON_Key)

- ExtractString.getString(string source, string StrStart, string StrEnd)
- ExtractString.getString(string source, string StrStart, int len)
- Log.LogFolderPath= "C:\\Users\\New folder1"
- Log.LogWriter(string LogToWrite)
- Log.LogInfo(string LogToWrite)
- Log.LogDebug(string LogToWrite)
- Log.LogWarning(string LogToWrite)
- Log.LogError(string LogToWrite)

- Log.LogWriter(string LogFolderPath, string LogToWrite)
- Log.LogInfo(string LogFolderPath, string LogToWrite)
- Log.LogDebug(string LogFolderPath, string LogToWrite)
- Log.LogWarning(string LogFolderPath, string LogToWrite)
- Log.LogError(string LogFolderPath, string LogToWrite)

Usage:

Get JSON Key value using simple method as below

- string KeyAddress = "students.id[2].courses.courseId[CS101].courseName[1]";
  string JsonValue = JSON.getJSON_key_Value(JSON_string,KeyAddress);
	
	* JSON_string= provide JSOn string
	* KeyAddress= Provide key address as example
		- if you not provide id[#], then it will return first record
		- if id is not exist in JSON response then provide index number. Ex:courseName[1] (index starts from 0)

Get string between 2 word provided from source string (2 Methods):

- Method 1: get specific string between 2 words
	- getString(string source, string StrStart, string StrEnd)
		* source = provide source string where
		* StrStart = provide specific word/string 
		* StrEnd = provide specific word/string 

		ex.:
			string Data="this is example string for getString function";
			string output = ExtString.getString(Data, "this is","for getString");

			Output will be: " example string "

- Method 2: get ending string from provided string starting from specific word.
	- getString(string source, string StrStart, int len)
		* source = provide source string where
		* StrStart = provide specific word/string 
		* StrEnd = provide source string length

		ex.:
			string Data="this is example string for getString function";
			string output = ExtractString.getString(Data, "this is",Data.Length);

			Output will be: " example string for getString function"

Usage:

Write Log to File (5 methods)(+1 oveload):

- LogWriter(string LogFolderPath, string LogToWrite)
- LogInfo(string LogFolderPath, string LogToWrite)
- LogDebug(string LogFolderPath, string LogToWrite)
- LogWarning(string LogFolderPath, string LogToWrite)
- LogError(string LogFolderPath, string LogToWrite)
	
	Provide only Log msg with when all log will be on same folder/file
	* LogToWrite = Provide Data to write in log file as a string.

	ex
        Log.LogFolderPath= "C:\\Users\\New folder1";

		Log.LogWriter("Test");
		Log.LogInfo("Test");
		Log.LogDebug("Test");
		Log.LogWarning("Test");
		Log.LogError("Test");

	* Created log file name formate : 2024-08-19.log
	* Captured log format in Logfile example:
					[2024-08-19 12:08:49] Test
					[2024-08-19 12:08:49] [Info] Test
					[2024-08-19 12:08:49] [Debug] Test
					[2024-08-19 12:08:49] [Warning] Test
					[2024-08-19 12:08:49] [Error] Test




	Provide Log path and msg when Log msg shoulbe in different folder by category.

	* LogFolderPath = Provide Path to the existing folder as a string. If folder is not exist the it will create folder.
	* LogToWrite = Provide Data to write in log file as a string.

	ex.:
			string AppLogPath=@"C:\Users\AppLog";
			string DBLogPath=@"C:\Users\DBLogPath";



			Log.LogWriter(AppLogPath, "Test");
			Log.LogInfo(AppLogPath, "Test");
			Log.LogDebug(DBLogPath, "Test");
			Log.LogWarning(DBLogPath, "Test");
			Log.LogError(DBLogPath, "Test");
	
	* Created log file name formate : 2024-08-19.log
	* Captured log format in Logfile example:
					[2024-08-19 12:08:49] Test
					[2024-08-19 12:08:49] [Info] Test
					[2024-08-19 12:08:49] [Debug] Test
					[2024-08-19 12:08:49] [Warning] Test
					[2024-08-19 12:08:49] [Error] Test
Product Compatible and additional computed target framework versions.
.NET Framework net451 is compatible.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.15 35 9/25/2024
1.0.11 58 9/23/2024
1.0.7 80 8/27/2024
1.0.6 82 8/27/2024
1.0.5 83 8/27/2024
1.0.4 71 8/27/2024
1.0.3 81 8/27/2024
1.0.1 78 8/27/2024

Summary of changes made in this release of the package.