Documentation ¶
Overview ¶
Package mylog provides a simple logging utility for Go projects.
Example ¶
package main import ( "github.com/juparave/mylogger" ) func main() { // Create a new logger logger := mylogger.NewLogger() // Log some messages logger.Info("This is an informational message") logger.Warn("This is a warning message") logger.Error("This is an error message") }
Output: This is an informational message This is a warning message This is an error message
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MyLogger ¶
type MyLogger struct {
// contains filtered or unexported fields
}
MyLogger represents a customized logger with separate streams for standard output and errors.
func NewLoggerBuffers ¶
NewLoggerBuffers creates a new instance of MyLogger with the specified output buffers. This function is useful for testing purposes.
Click to show internal directories.
Click to hide internal directories.