ObjFW
Loading...
Searching...
No Matches
Classes | Functions | Variables
OFStdIOStream.h File Reference
import "OFStream.h"
import "OFKernelEventObserver.h"

Go to the source code of this file.

Classes

class  OFStdIOStream
 A class for providing standard input, output and error as OFStream. More...
 

Functions

void OFLog (OFConstantString *format,...)
 Logs the specified printf-style format to OFStdErr.
 
void OFLogV (OFConstantString *format, va_list arguments)
 Logs the specified printf-style format to OFStdErr.
 

Variables

OFStdIOStreamOFStdIn
 The standard input as an OFStream.
 
OFStdIOStreamOFStdOut
 The standard output as an OFStream.
 
OFStdIOStreamOFStdErr
 The standard error as an OFStream.
 

Function Documentation

◆ OFLog()

void OFLog ( OFConstantString * format,
... )
extern

Logs the specified printf-style format to OFStdErr.

This prefixes the output with the date, timestamp, process name and PID.

Parameters
formatThe format for the line to log. See writeFormat: (OFStream).

◆ OFLogV()

void OFLogV ( OFConstantString * format,
va_list arguments )
extern

Logs the specified printf-style format to OFStdErr.

This prefixes the output with the date, timestamp, process name and PID.

Parameters
formatThe format for the line to log. See writeFormat: (OFStream).
argumentsThe arguments for the format