PSLog | Logger written for Powershell

 by   halvarsson PowerShell Version: Current License: No License

kandi X-RAY | PSLog Summary

kandi X-RAY | PSLog Summary

PSLog is a PowerShell library typically used in Logging applications. PSLog has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

The level of logging that should be written to file. INFO/DEBUG/WARN/ERROR/FATAL. Whether or not logging should also be output to console. The amount of files to rotate before overwriting old logs. The max size of the log file before its rotated. The name of the logfile to be used. Will belogged to \logs\. The pattern of the log entries. %d% %t% [%lvl%]: %log_data%. Pattern for date (1). Pattern for timestamp (1). Regular expression of where the .xml file is saved. The encoding the content of the content in the logfile. Possible encodings can be retrieved with [System.Text.Encoding]::GetEncodings().
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PSLog has a low active ecosystem.
              It has 2 star(s) with 0 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              PSLog has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PSLog is current.

            kandi-Quality Quality

              PSLog has 0 bugs and 0 code smells.

            kandi-Security Security

              PSLog has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PSLog code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PSLog does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              PSLog releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.
              It has 12 lines of code, 0 functions and 1 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PSLog
            Get all kandi verified functions for this library.

            PSLog Key Features

            No Key Features are available at this moment for PSLog.

            PSLog Examples and Code Snippets

            No Code Snippets are available at this moment for PSLog.

            Community Discussions

            QUESTION

            JavaScript hanging writing errors from a .ps1 script
            Asked 2020-Jun-09 at 12:15

            Because of reasons, I have a situation in which I need to use a .js file to call a .bat file, which calls a .ps1 file. It may sound crazy, but yes, I have to launch the .ps1 file this way.

            My problem is that, the .js file is hanging after writing a variable number of errors. The number of errors that causes the script to hang changes between scripts, but seems to be consistent within a script.

            I have included sanitized scripts below.

            Every time I run this particular combo using cscript (cscript c:\temp\test.js "c:\temp\test3.bat"), the script stops after writing "Checking device 10 of 100." to the log file and does not return me to the prompt. If I run the .bat file from the same command prompt, the script runs as expected. If, on line 41 of the .ps1 script, I change the message type from "Error" to "Verbose" (for example), the script runs fine and completes as expected.

            It seems that the .js file does not like something about "Write-Error $Message" from the Out-PsLogging function but:

            1. I cannot tell what it doesn't like
            2. I cannot tell why it stops writing errors after (in this case) 10 errors

            I have seen this behavior on Windows 10 and Server 2019 (ps 5.1).

            Code:

            ...

            ANSWER

            Answered 2020-Jun-09 at 12:15

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PSLog

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/halvarsson/PSLog.git

          • CLI

            gh repo clone halvarsson/PSLog

          • sshUrl

            git@github.com:halvarsson/PSLog.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link