VLogFile 0.1.3

dotnet add package VLogFile --version 0.1.3
                    
NuGet\Install-Package VLogFile -Version 0.1.3
                    
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="VLogFile" Version="0.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VLogFile" Version="0.1.3" />
                    
Directory.Packages.props
<PackageReference Include="VLogFile" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VLogFile --version 0.1.3
                    
#r "nuget: VLogFile, 0.1.3"
                    
#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.
#:package VLogFile@0.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VLogFile&version=0.1.3
                    
Install as a Cake Addin
#tool nuget:?package=VLogFile&version=0.1.3
                    
Install as a Cake Tool

VLogFile

Write lines to log file

Version: 0.1.2

Use a static class Logger.

Properties:

LogDirectory

Gets or sets Name of directory for saving log files. Default: "Logs"

LogFolder

Gets or sets path to save the directory LogDirectory. Application | MyDocuments | ApplicationData | LocalApplicationData | UserProfile. Default: ApplicationData

FileNameFormat

Gets or sets Log file name DateTime format. Default: "yyyyMMdd"

ImmidiateWrite

Gets or sets a value indicating whether the StreamWriter will flush its buffer to the underlying stream after any write call. Default: false

BufferSize

Gets or sets write buffer size in lines (ImmidiateWrite is false). Default: 10000

WriteDateTime

Gets or sets value that indicates whether the write date and/or time to beginning of line. Default: true

DateTimeFormat

Gets or sets date and/or time format at the beginning of line (WriteDateTime is true). Default: "G"

Formats

Gets Format Dictionary.


Methods:

void AddFormat(string formatName, string format)

Adds format to Format Dictionary.

async Task WriteLine(string line)

Asynchronously writes a string to the stream, followed by a line terminator.

async Task WriteLines(IEnumerable&lt;string&gt; lines)

Asynchronously writes array of strings to the stream.

async Task WriteLine(string formatName, params object[] param)

Asynchronously writes array of parameters by format from Format Dictionary.

async Task WriteLines(string formatName, IEnumerable<object[]> param)

Asynchronously writes array containing an array of parameters by format from Format Dictionary.

async Task WriteLineFormat(string format, params object[] param)

Asynchronously writes array of parameters by format.

async Task WriteLinesFormat(string format, IEnumerable<object[]> param)

Asynchronously writes array containing an array of parameters by format.

async Task WriteError(Exception e)

Asynchronously writes Exception information.

async Task SaveChanges()

Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying stream (ImmidiateWrite is false).

void Dispose()

SaveChanges and releases all resources used by the StreamWriter object.


Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • 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
0.1.3 537 5/12/2021
0.1.1 523 4/24/2021