Skip to content

Commit

Permalink
FIX:: log file to specific path
Browse files Browse the repository at this point in the history
  • Loading branch information
ritarossiDa committed Nov 21, 2022
1 parent f600a27 commit d81b0da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const j = "jY-1"
```
even if you don't have to change the special key don't worry the software will use the default string and you can use it anyway

Second you **must define the path for the log in main.go line 16**
Second you **must define the path for the log in main.go line 17**

```const pathLog = "/opt/frm/application/libraries/"
```
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ var (
ErrorLogger *log.Logger
)

const pathLog = "/opt/frm/application/libraries/"
// For example const pathLog = "/opt/frm/application/libraries/"
const pathLog = ""

func init() {
file, err := os.OpenFile(pathLog+"enc_dec.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0777)
Expand Down

0 comments on commit d81b0da

Please sign in to comment.