Namespaces | Defines | Typedefs | Functions

C:/knet/include/kNet/NetworkLogging.h File Reference

The LOG and LOGUSER macros. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kNet

Defines

#define LOGUSER(msg,...)   kNet::TimeOutputDebugStringVariadic(LogUser, __FILE__, __LINE__, msg, ##__VA_ARGS__)
 Prints out a variadic message to the log channel User.
#define LOG(channel, msg,...)   kNet::TimeOutputDebugStringVariadic(channel, __FILE__, __LINE__, msg, ##__VA_ARGS__)
 Prints out a variadic message to the given log channel.

Typedefs

typedef unsigned int kNet::LogChannel
 A bitfield type that describes single or multiple log channels (each bit represents a channel).

Functions

void kNet::TimeOutputDebugStringVariadic (LogChannel logChannel, const char *filename, int lineNumber, const char *msg,...)
 Prints a variadic line to log.
void kNet::TimeOutputDebugString (LogChannel logChannel, const char *filename, int lineNumber, const char *msg)
 Prints a message to the log. Same as kNet::TimeOutputDebugStringVariadic, but does not use printf formatting.
void kNet::SetLogChannels (LogChannel logChannel)
 Sets the currently enabled log channels.
LogChannel kNet::GetLogChannels ()
 Returns the currently active log channels.
void kNet::SetLogFile (const char *filename)
 Sets the output for log messages.
void kNet::EnableMemoryLeakLoggingAtExit ()
 When called, sets the runtime to print out all memory leaks at program exit time.

Detailed Description

The LOG and LOGUSER macros.

Provides an unified mechanism for logging.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines