diff --git a/README.md b/README.md index df74fbe..a7c1517 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ go-logger ================= -[![Project status](https://img.shields.io/badge/version-v1.3.2-vividgreen.svg)](https://github.com/GabrielHCataldo/go-logger/releases/tag/v1.3.2) +[![Project status](https://img.shields.io/badge/version-v1.3.4-vividgreen.svg)](https://github.com/GabrielHCataldo/go-logger/releases/tag/v1.3.4) [![Go Report Card](https://goreportcard.com/badge/github.com/GabrielHCataldo/go-logger)](https://goreportcard.com/report/github.com/GabrielHCataldo/go-logger) [![Coverage Status](https://coveralls.io/repos/GabrielHCataldo/go-logger/badge.svg?branch=main&service=github)](https://coveralls.io/github/GabrielHCataldo/go-logger?branch=main) [![Open Source Helpers](https://www.codetriage.com/gabrielhcataldo/go-logger/badges/users.svg)](https://www.codetriage.com/gabrielhcataldo/go-logger) diff --git a/logger/core.go b/logger/core.go index 90e95e1..a99fd37 100644 --- a/logger/core.go +++ b/logger/core.go @@ -102,6 +102,16 @@ func SetOptions(options *Options) { } } +// GetOptions returns the current global options configuration. +// This function retrieves the current configuration options for the logging package. +// The options include print mode, date format, asynchronous mode, etc. +// Return: +// +// Options - The current global options configuration. +func GetOptions() Options { + return *opts +} + // ResetOptionsToDefault resets the global options to their default values. // This function initializes the opts variable with a new instance of the Options struct, effectively resetting all // options to their default values.