Serilog. Sinks. File

GPTKB entity

Statements (33)
Predicate Object
gptkbp:instance_of gptkb:river
gptkbp:bfsLayer 4
gptkbp:bfsParent gptkb:Serilog
gptkbp:dependency gptkb:System._IO
gptkb:Serilog
gptkb:Microsoft._Extensions._Logging
gptkbp:developed_by gptkb:Serilog
gptkbp:example Log. Information(" Log to file", new { Property = value });
Log. Close And Flush();
Log. Debug(" Debug message");
Log. Error(" Error message");
Log. Fatal(" Fatal error");
Log. Information(" Message");
Log. Warning(" Warning message");
Log. Logger = new Logger Configuration(). Write To. File("log.txt"). Create Logger();
Log. Logger = new Logger Configuration(). Write To. File("log.txt", file Size Limit Bytes: 1_000_000). Create Logger();
Log. Logger = new Logger Configuration(). Write To. File("log.txt", rolling Interval: Rolling Interval. Day). Create Logger();
gptkbp:has_documentation Available online
https://www.w3.org/2000/01/rdf-schema#label Serilog. Sinks. File
gptkbp:input_output gptkb:JSON
gptkb:poet
gptkbp:is_used_for Logging
gptkbp:language gptkb:C#
gptkbp:latest_version Latest version as of 2023
gptkbp:license MIT License
gptkbp:platform Cross-platform
gptkbp:release_date Varies by version
gptkbp:repository gptkb:archive
gptkbp:setting File size limit
File path
Retained file count
Rolling interval
gptkbp:supports Structured logging