vnlog 1.0.1

dotnet add package vnlog --version 1.0.1                
NuGet\Install-Package vnlog -Version 1.0.1                
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="vnlog" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vnlog --version 1.0.1                
#r "nuget: vnlog, 1.0.1"                
#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 vnlog as a Cake Addin
#addin nuget:?package=vnlog&version=1.0.1

// Install vnlog as a Cake Tool
#tool nuget:?package=vnlog&version=1.0.1                

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();

     //String result = await VisualNet.Log.Upload("http://YOUR_URL", "MyFile.log");

        var result = Task.Run(() => VisualNet.Log.Upload("http://YOUR_URL", "MyFile.log")).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.";
		}
	}


?>

Nuget Package on Visual Studio

Example of Screen in Visuao Studio 2017

Example of Screen in Visuao Studio 2017

Author

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

Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid10 is compatible. 
Xamarin.iOS xamarinios10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 927 8/5/2018
1.0.0 817 8/5/2018