vnlog 1.0.0

There is a newer version of this package available.
See the version list below for details.
Install-Package vnlog -Version 1.0.0
dotnet add package vnlog --version 1.0.0
<PackageReference Include="vnlog" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vnlog --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: vnlog, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install vnlog as a Cake Addin
#addin nuget:?package=vnlog&version=1.0.0

// Install vnlog as a Cake Tool
#tool nuget:?package=vnlog&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Smart Log and Upload

Smart Log 1.0.0 VNLog for .NET Framework and .NET Standard VNLog is a logging platform for .NET with upload to any URL.

Supported platforms:

  • Xamarin Android, Xamarin iOs
  • Mono 4

Example

    //*****************************************************************************************************
        VisualNet.Log.DateFormat = "yyyyMMddHHmmss";
        VisualNet.Log.DateTimeEnabled = true;
        VisualNet.Log.NewLineEnabled = true;

        VisualNet.Log.Clear();
        VisualNet.Log.Write("aaaaaaaaaaaaaa");
        VisualNet.Log.Write("bbbbbbbbbbbbbb");
        VisualNet.Log.Write("cccccccccccccc");
        VisualNet.Log.Write("dddddddddddddd");

        String SavedLog = VisualNet.Log.Read();

        Debug.WriteLine(SavedLog);
        
       // String result = await VisualNet.Log.Upload("http://YOUR_URL/receive.php", "MyFile.log");

        var result = Task.Run(() => VisualNet.Log.Upload("http://YOUR_URL/receive.php", "MyFile.log")).Result;
        Debug.WriteLine(result);


        //*****************************************************************************************************

Upload Log File (Optional)

In server side you can receive in any type of technology, like:

  1. ASP.NET
  2. PHP
  3. Phyton
  4. Classic Asp
  5. etc etc etc etc etc

Example using PHP in server side

<?php

 	$target_dir = "uploads/";
	$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
	$uploadOk = 1;
	$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));

	if(isset($_POST["submit"]))
	{
		 $uploadOk = 1;
	}


	if ($uploadOk == 0)
	{
		echo "Sorry, your file was not uploaded.";
	}
	else
	{
		if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file))
		{
			echo "The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.";
		}
		else
		{
			echo "Sorry, there was an error uploading your file.";
		}
	}


?>

Author

This library was created by Alberto Iglesias Email: alberto@visualnet.inf.br

This package has 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.1 502 8/5/2018
1.0.0 473 8/5/2018